Open woodost opened 4 years ago
$brands = Brand::new()->setModelHidden(['updated_at'])->where($where)->get()->toArray();
如上代码: 在查询数据库时,设置掩藏updated_at字段,结果不生效,所有数据都返回了
https://github.com/swoft-cloud/swoft-component/pull/595/commits/5559a7c53f74f54c02f063d08899d0d7b81427f2
$brands = Brand::new()->setModelHidden(['updated_at'])->where($where)->get()->toArray();
如上代码: 在查询数据库时,设置掩藏updated_at字段,结果不生效,所有数据都返回了