/**
  * @return \yii\db\ActiveQuery
  */
 public function getPlaceCategories()
 {
     return $this->hasMany(PlaceCategory::className(), ['categoria_id' => 'id']);
 }
Exemplo n.º 2
0
 public function getPlaceCategories()
 {
     return $this->hasMany(CategoryGoogle::className(), ['id', 'categoria_id'])->viaTable(PlaceCategory::className(), ['categoria_id' => 'id']);
 }