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