Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPlace()
 {
     return $this->hasOne(MrPlaces::className(), ['id' => 'place_id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getMrPlaces()
 {
     return $this->hasMany(MrPlaces::className(), ['category_id' => 'id']);
 }