public function removeGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if ($this->groups->contains($group)) {
            $this->groups->removeElement($group);
        }
    }
public function removeGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if ($this->groups->contains($group)) {
            $this->groups->removeElement($group);
        }
    }
public function removeGroup ( Group $ group ) { $ this -> hasGroupsProperty ( ) ; if ( $ this -> groups -> contains ( $ group ) ) { $ this -> groups -> removeElement ( $ group ) ; } }
Removes an group.

@param Group $group
Removes an group .