comments entity

This commit is contained in:
2023-05-17 01:14:54 +03:00
parent b32b35540b
commit 4ae43ff2da
6 changed files with 135 additions and 6 deletions

View File

@ -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',
];
}