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