/** * Add tags * * @param \Acme\BlogBundle\Entity\Tag $tags * @return User */ public function addTag(\Acme\BlogBundle\Entity\Tag $tags) { $tags->addUser($this); $this->tags[] = $tags; return $this; }