Exemple #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProperties()
 {
     return $this->hasMany(Properties::className(), ['updated_by' => 'id']);
 }
 public function getProperty()
 {
     return $this->hasOne(Properties::className(), ['id' => 'property_id']);
 }
Exemple #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getProperties()
 {
     return $this->hasMany(Properties::className(), ['object' => 'id']);
 }