Ejemplo n.º 1
0
 /**
  * @param Group $group
  */
 public function removeGroup(Group $group)
 {
     if (!$this->groups->contains($group)) {
         return;
     }
     $this->groups->removeElement($group);
     $group->removeUser($this);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 4
0
 /**
  * Remove groups
  *
  * @param \Group $groups
  */
 public function removeGroup(\Group $groups)
 {
     /** @noinspection PhpUndefinedMethodInspection */
     $this->groups->removeElement($groups);
 }