コード例 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getReference()
 {
     return $this->hasOne(AdRealEstateReference::className(), ['id' => 'reference_id']);
 }
コード例 #2
0
ファイル: AdRealEstate.php プロジェクト: baranov-nt/setyes
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTypeOfProperty()
 {
     return $this->hasOne(AdRealEstateReference::className(), ['id' => 'type_of_property']);
 }