Exemplo n.º 1
0
 /**
  * Defines the relationshîp with the junction table pizza_ingredient
  */
 public function getPizzaIngredients()
 {
     return $this->hasMany(PizzaIngredient::className(), ['ingredient_id' => 'id']);
 }