swoft icon indicating copy to clipboard operation
swoft copied to clipboard

swoft 使用数据库模型查询数据时,设置隐藏字段不生效

Open woodost opened this issue 4 years ago • 1 comments

$brands = Brand::new()->setModelHidden(['updated_at'])->where($where)->get()->toArray();

如上代码: 在查询数据库时,设置掩藏updated_at字段,结果不生效,所有数据都返回了

woodost avatar Jul 30 '20 06:07 woodost

https://github.com/swoft-cloud/swoft-component/pull/595/commits/5559a7c53f74f54c02f063d08899d0d7b81427f2

sakuraovq avatar Sep 13 '20 07:09 sakuraovq