1 | <?php |
||
22 | class BaseMongoBlameableModel extends BaseMongoEntityModel |
||
23 | { |
||
24 | use BlameableTrait; |
||
25 | |||
26 | /** |
||
27 | * Initialize the blameable model. |
||
28 | * If query class is not specified, [[BaseBlameableQuery]] will be taken. |
||
29 | */ |
||
30 | public function init() |
||
41 | |||
42 | /** |
||
43 | * Get the query class with specified identity. |
||
44 | * @param \vistart\Models\models\BaseUserModel $identity |
||
45 | * @return \vistart\Models\queries\BaseBlameableQuery |
||
46 | */ |
||
47 | public static function findByIdentity($identity = null) |
||
51 | |||
52 | /** |
||
53 | * Because every document has a `MongoId" class, this class is no longer needed GUID feature. |
||
54 | * @var boolean determines whether enable the GUID features. |
||
55 | */ |
||
56 | public $guidAttribute = false; |
||
57 | public $idAttribute = '_id'; |
||
58 | |||
59 | public function attributes() |
||
66 | } |
||
67 |