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