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