/** * Add posts * * @param \AppBundle\Entity\Post $posts * @return Series */ public function addPost(\AppBundle\Entity\Post $posts) { $this->posts[] = $posts; $posts->setSeries($this); return $this; }