project users, column priority
This commit is contained in:
@ -49,6 +49,10 @@ use yii\web\Linkable;
|
||||
* property="columns",
|
||||
* ref="#/components/schemas/ProjectColumnExample",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="projectUsers",
|
||||
* ref="#/components/schemas/ProjectUsersExample",
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
* @OA\Schema(
|
||||
@ -85,6 +89,10 @@ use yii\web\Linkable;
|
||||
* property="company",
|
||||
* ref="#/components/schemas/Company",
|
||||
* ),
|
||||
* @OA\Property(
|
||||
* property="projectUsers",
|
||||
* ref="#/components/schemas/ProjectUsers",
|
||||
* ),
|
||||
* ),
|
||||
*)
|
||||
*
|
||||
@ -107,7 +115,7 @@ class Project extends \common\models\Project
|
||||
'company' => function() {
|
||||
return $this->company;
|
||||
},
|
||||
|
||||
'projectUsers',
|
||||
];
|
||||
}
|
||||
|
||||
@ -116,6 +124,14 @@ class Project extends \common\models\Project
|
||||
return ['columns',];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return ActiveQuery
|
||||
*/
|
||||
public function getProjectUsers()
|
||||
{
|
||||
return $this->hasMany(ProjectUser::class, ['project_id' => 'id']);
|
||||
}
|
||||
|
||||
public function getLinks(): array
|
||||
{
|
||||
return [
|
||||
|
Reference in New Issue
Block a user