function() { return $this->hh; }, 'owner_id', 'company' => function() { return $this->company; }, 'projectUsers', ]; } public function extraFields(): array { return ['columns',]; } /** * @return ActiveQuery */ public function getProjectUsers() { return $this->hasMany(ProjectUser::class, ['project_id' => 'id']); } public function getLinks(): array { return [ Link::REL_SELF => Url::to(['index', 'project_id' => $this->id], true), ]; } public function getCompany(): ActiveQuery { return $this->hasOne(Company::className(), ['id' => 'company_id']); } }