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