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

        if (!$this->groups->contains($group)) {
            $this->groups->add($group);
        }
    }
public function addGroup(Group $group)
    {
        $this->hasGroupsProperty();

        if (!$this->groups->contains($group)) {
            $this->groups->add($group);
        }
    }
public function addGroup ( Group $ group ) { $ this -> hasGroupsProperty ( ) ; if ( ! $ this -> groups -> contains ( $ group ) ) { $ this -> groups -> add ( $ group ) ; } }
Add an group.

@param Group $group
Add an group .