FOS\UserBundle\Model\User::removeGroup PHP Метод

removeGroup() публичный Метод

Remove a group from the user groups
public removeGroup ( FOS\UserBundle\Model\GroupInterface $group ) : null
$group FOS\UserBundle\Model\GroupInterface
Результат null
    public function removeGroup(GroupInterface $group)
    {
        if ($this->getGroups()->contains($group)) {
            $this->getGroups()->remove($group);
        }
    }

Usage Example

Пример #1
0
 public function removeSecurityGroup(GroupInterface $group)
 {
     return parent::removeGroup($group);
 }