/** * {@inheritDoc} */ public function getRecipe() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecipe', []); return parent::getRecipe(); }
/** * 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; }