1 | <?php |
||
24 | abstract class BaseRedisEntityModel extends \yii\redis\ActiveRecord |
||
25 | { |
||
26 | use EntityTrait; |
||
27 | |||
28 | /** |
||
29 | * Initialize new entity. |
||
30 | */ |
||
31 | 7 | public function init() |
|
32 | { |
||
33 | 7 | if ($this->skipInit) { |
|
34 | 1 | return; |
|
35 | } |
||
36 | 7 | $this->initEntityEvents(); |
|
37 | 7 | parent::init(); |
|
38 | 7 | } |
|
39 | |||
40 | /** |
||
41 | * @inheritdoc |
||
42 | * @return \vistart\Models\queries\BaseRedisEntityQuery the newly created [[BaseEntityQuery]] or its sub-class instance. |
||
43 | */ |
||
44 | 7 | public static function find() |
|
53 | |||
54 | 7 | public function attributes() |
|
58 | |||
59 | 5 | public static function primaryKey() |
|
67 | } |
||
68 |