1 在查询中增加条件     
2 
3 public function defaultScope()
4     {
5         return array(
6             'condition' => " is_deleted = 0",
7         );
8     }

 

相关文章:

  • 2022-02-01
  • 2021-11-19
  • 2022-12-23
  • 2021-10-15
  • 2021-12-26
  • 2022-12-23
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2021-04-26
  • 2022-01-14
  • 2021-11-16
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案