/** * Add tags * * @param \AppBundle\Entity\Tag $tag * @return Post */ public function addTag($tag) { $this->tags[] = $tag; $tag->addPost($this); return $this; }
/** * Add tags * * @param \AppBundle\Entity\Tag $tag * @return Post */ public function addTag($tag) { $this->tags[] = $tag; $tag->addPost($this); return $this; }