/** * {@inheritdoc} */ public function removeGroup(GroupInterface $group) { if ($this->groups->contains($group)) { $this->groups->removeElement($group); } }
/** * {@inheritdoc} */ public function removeGroup(GroupInterface $group) { $this->groups->removeElement($group); return $this; }