public function addGroup(GroupInterface $group) { if (!$this->getGroups()->contains($group)) { $this->getGroups()->add($group); } }
public function addGroup(GroupInterface $groups) { parent::addGroup($groups); $this->groups[] = $groups; return $this; }