/**
  * {@inheritDoc}
  */
 public function getRecipe()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecipe', []);
     return parent::getRecipe();
 }
Exemple #2
0
 /**
  * Add ingredient
  *
  * @param \Main\CookBundle\Entity\Ingredient $ingredient
  *
  * @return Recipe
  */
 public function addIngredient(\Main\CookBundle\Entity\Ingredient $ingredient)
 {
     $this->ingredient[] = $ingredient;
     $ingredient->setRecipe($this);
     return $this;
 }