예제 #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getRegion()
 {
     return $this->hasOne(PlaceRegion::className(), ['id' => 'region_id']);
 }
예제 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPlaceRegions()
 {
     return $this->hasMany(PlaceRegion::className(), ['country_id' => 'id']);
 }