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