/** * {@inheritDoc} */ public function setRecipe(\Main\CookBundle\Entity\Recipe $recipe = NULL) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecipe', [$recipe]); return parent::setRecipe($recipe); }
/** * Add step * * @param \Main\CookBundle\Entity\Step $step * * @return Recipe */ public function addStep(\Main\CookBundle\Entity\Step $step) { $this->step[] = $step; $step->setRecipe($this); return $this; }