Exemplo n.º 1
0
 /**
  * @param \Claroline\CoreBundle\Entity\Resource\ResourceRights $rights
  */
 public function logChangeSet(ResourceRights $rights)
 {
     $uow = $this->om->getUnitOfWork();
     $class = $this->om->getClassMetadata('Claroline\\CoreBundle\\Entity\\Resource\\ResourceRights');
     $uow->computeChangeSet($class, $rights);
     $changeSet = $uow->getEntityChangeSet($rights);
     if (count($changeSet) > 0) {
         $this->dispatcher->dispatch('log', 'Log\\LogWorkspaceRoleChangeRight', array($rights->getRole(), $rights->getResourceNode(), $changeSet));
     }
 }