Example #1
0
 /**
  * @param Group $group
  */
 public function removeGroup(Group $group)
 {
     if (!$this->groups->contains($group)) {
         return;
     }
     $this->groups->removeElement($group);
     $group->removeUser($this);
 }
Example #2
0
 /**
  * @param Group $group
  */
 public function removeFromGroup(Group $group)
 {
     $this->groups->removeElement($group);
 }
 /**
  * Remove a group
  *
  * @param Group $group
  *
  * @return AbstractAssociation
  */
 public function removeGroup(Group $group)
 {
     $this->groups->removeElement($group);
     return $this;
 }
Example #4
0
 /**
  * Remove groups
  *
  * @param \Group $groups
  */
 public function removeGroup(\Group $groups)
 {
     /** @noinspection PhpUndefinedMethodInspection */
     $this->groups->removeElement($groups);
 }