/** * {@inheritdoc} */ public function removeChild(PermissionInterface $permission) { if ($this->hasChild($permission)) { $permission->setParent(null); $this->children->removeElement($permission); } }
/** * {@inheritdoc} */ public function removePermission(PermissionInterface $permission) { if ($this->hasPermission($permission)) { $this->permissions->removeElement($permission); } }