1 | <?php |
||
24 | abstract class BaseRedisBlameableModel extends BaseRedisEntityModel |
||
25 | { |
||
26 | use BlameableTrait; |
||
27 | |||
28 | /** |
||
29 | * Initialize the blameable model. |
||
30 | * If query class is not specified, [[BaseRedisBlameableQuery]] will be taken. |
||
31 | */ |
||
32 | 1 | public function init() |
|
33 | { |
||
34 | 1 | if (!is_string($this->queryClass)) { |
|
35 | 1 | $this->queryClass = BaseRedisBlameableQuery::class; |
|
36 | 1 | } |
|
37 | 1 | if ($this->skipInit) { |
|
38 | 1 | return; |
|
39 | } |
||
40 | 1 | $this->initBlameableEvents(); |
|
41 | 1 | parent::init(); |
|
42 | 1 | } |
|
43 | |||
44 | /** |
||
45 | * Get the query class with specified identity. |
||
46 | * @param BaseUserModel $identity |
||
47 | * @return BaseRedisBlameableQuery |
||
48 | */ |
||
49 | public static function findByIdentity($identity = null) |
||
53 | } |
||
54 |