1 | <?php |
||
27 | abstract class BaseEntityModel extends ActiveRecord |
||
28 | { |
||
29 | use EntityTrait; |
||
30 | |||
31 | /** |
||
32 | * Initialize new entity. |
||
33 | */ |
||
34 | 36 | public function init() |
|
43 | |||
44 | /** |
||
45 | * Check whether all properties meet the standards. If you want to disable |
||
46 | * checking, please override this method and return true directly. This |
||
47 | * method runs when environment is not production or disable debug mode. |
||
48 | * @return boolean true if all checks pass. |
||
49 | * @throws \yii\base\NotSupportedException |
||
50 | */ |
||
51 | 36 | public function checkAttributes() |
|
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | * ------------ |
||
66 | * This static method will take $queryClass property to query class. If it is |
||
67 | * not a string, The [[BaseEntityQuery]] will be taken. |
||
68 | * @return \vistart\Models\models\BaseEntityQuery the newly created [[BaseEntityQuery]] |
||
69 | * or its extended class instance. |
||
70 | */ |
||
71 | 36 | public static function find() |
|
80 | } |
||
81 |