comments entity
This commit is contained in:
@ -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