/** * Add story * * @param \AppBundle\Entity\Story $story * @return StoryCategory */ public function addStory(\AppBundle\Entity\Story $story) { $story->addStoryCategory($this); $this->stories[] = $story; return $this; }