src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/PermissionAdmin.php
public function createAclChangeSet(AbstractEntity $entity, $changes, UserInterface $user)
    {
        $aclChangeset = new AclChangeset();
        $aclChangeset->setRef($entity);
        $aclChangeset->setChangeset($changes);
        /* @var $user BaseUser */
        $aclChangeset->setUser($user);
        $this->em->persist($aclChangeset);
        $this->em->flush();

        return $aclChangeset;
    }
public function createAclChangeSet(AbstractEntity $entity, $changes, UserInterface $user)
    {
        $aclChangeset = new AclChangeset();
        $aclChangeset->setRef($entity);
        $aclChangeset->setChangeset($changes);
        /* @var $user BaseUser */
        $aclChangeset->setUser($user);
        $this->em->persist($aclChangeset);
        $this->em->flush();

        return $aclChangeset;
    }
public function createAclChangeSet ( AbstractEntity $ entity , $ changes , UserInterface $ user ) { $ aclChangeset = new AclChangeset ( ) ; $ aclChangeset -> setRef ( $ entity ) ; $ aclChangeset -> setChangeset ( $ changes ) ; /* @var $user BaseUser */ $ aclChangeset -> setUser ( $ user ) ; $ this -> em -> persist ( $ aclChangeset ) ; $ this -> em -> flush ( ) ; return $ aclChangeset ; }
Create a new ACL changeset.

@param AbstractEntity $entity  The entity
@param array          $changes The changes
@param UserInterface  $user    The user

@return AclChangeset
Create a new ACL changeset .