/** * @return \yii\db\ActiveQuery */ public function getBirim() { return $this->hasOne(Departmanlar::className(), ['DepID' => 'birimID']); }