FOS\UserBundle\Model\User::removeGroup PHP Méthode

removeGroup() public méthode

Remove a group from the user groups
public removeGroup ( FOS\UserBundle\Model\GroupInterface $group ) : null
$group FOS\UserBundle\Model\GroupInterface
Résultat null
    public function removeGroup(GroupInterface $group)
    {
        if ($this->getGroups()->contains($group)) {
            $this->getGroups()->remove($group);
        }
    }

Usage Example

Exemple #1
0
 public function removeSecurityGroup(GroupInterface $group)
 {
     return parent::removeGroup($group);
 }