/** * @return \yii\db\ActiveQuery */ public function getTeamWork() { return $this->hasOne(TeamWork::className(), ['id' => 'team_work_id']); }