/** * Remove post * * @param \AppBundle\Entity\Post $post */ public function removePost(\AppBundle\Entity\Post $post) { $this->posts->removeElement($post); }
/** * Remove post * * @param Post $post */ public function removePost(Post $post) { $this->posts->removeElement($post); }