diff --git a/frontend/modules/api/models/project/Project.php b/frontend/modules/api/models/project/Project.php index f7c352d..8f79c62 100644 --- a/frontend/modules/api/models/project/Project.php +++ b/frontend/modules/api/models/project/Project.php @@ -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; },