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