1 在查询中增加条件 2 3 public function defaultScope() 4 { 5 return array( 6 'condition' => " is_deleted = 0", 7 ); 8 }
1 在查询中增加条件 2 3 public function defaultScope() 4 { 5 return array( 6 'condition' => " is_deleted = 0", 7 ); 8 }
转载于:https://www.cnblogs.com/druids/p/4203464.html