comments entity
This commit is contained in:
1 parent
b32b35540b
commit
4ae43ff2da
6 files changed
+135
-6
No files matched your search
@@ -125,6 +125,9 @@ class ProjectTask extends ActiveRecord
|
||||
|
||||
return null;
|
||||
},
|
||||
'comment_count' => function(){
|
||||
return Comment::find()->where(['entity_id' => $this->id, 'entity_type' => 2, 'status' => Comment::STATUS_ACTIVE])->count();
|
||||
},
|
||||
'taskUsers',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user