1 | <?php |
||
13 | abstract class Model { |
||
|
|||
14 | use Module, Persistence, Events; |
||
15 | |||
16 | public static function where($where_sql = false, $params = [], $flush = false){ |
||
24 | |||
25 | public static function count($where_sql = false, $params = []) { |
||
28 | |||
29 | public static function all($page=1, $limit=-1){ |
||
32 | |||
33 | public function primaryKey(){ |
||
37 | |||
38 | public static function create($data){ |
||
46 | |||
47 | } |
||
48 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.