/** * @return \yii\db\ActiveQuery */ public function getReference() { return $this->hasOne(AdRealEstateReference::className(), ['id' => 'reference_id']); }
/** * @return \yii\db\ActiveQuery */ public function getTypeOfProperty() { return $this->hasOne(AdRealEstateReference::className(), ['id' => 'type_of_property']); }