/** * @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']); }
/** * @return \yii\db\ActiveQuery */ public function getProperties() { return $this->hasMany(Properties::className(), ['object' => 'id']); }