project owner info

This commit is contained in:
Kavalar 2024-02-09 16:35:59 +03:00
parent 047912c3a4
commit 32a7f483fb

View File

@ -112,6 +112,12 @@ class Project extends \common\models\Project
return $this->hh;
},
'owner_id',
'owner_info' => function(){
return [
"fio" => $this->owner->userCard->fio ?? ($this->user->id ?? ''),
"avatar" => $this->owner->userCard->photo ?? '',
];
},
'company' => function() {
return $this->company;
},