public function addAccessEntity(AccessEntity $accessEntity)
    {
        try {
            $em = $this->entityManager->getDoctrineEntityManager();
            $em->persist($accessEntity);
            $em->flush();
            
            return $accessEntity->getUuid();
        } catch (\Exception $e) {
            throw new Exception('Cannot add the new access entitiy "' . $accessEntity->getName() . '".', 0, $e);
        }
    }
public function addAccessEntity(AccessEntity $accessEntity)
    {
        try {
            $em = $this->entityManager->getDoctrineEntityManager();
            $em->persist($accessEntity);
            $em->flush();
            
            return $accessEntity->getUuid();
        } catch (\Exception $e) {
            throw new Exception('Cannot add the new access entitiy "' . $accessEntity->getName() . '".', 0, $e);
        }
    }
public function addAccessEntity ( AccessEntity $ accessEntity ) { try { $ em = $ this -> entityManager -> getDoctrineEntityManager ( ) ; $ em -> persist ( $ accessEntity ) ; $ em -> flush ( ) ; return $ accessEntity -> getUuid ( ) ; } catch ( \ Exception $ e ) { throw new Exception ( 'Cannot add the new access entitiy "' . $ accessEntity -> getName ( ) . '".' , 0 , $ e ) ; } }
Adds an access entity. Returns the uuid of the access entity
or false, if the access entity can not inserted.

@access public
@param \Zepi\Core\AccessControl\Entity\AccessEntity $accessEntity
@return string|false

@throws \Zepi\Core\AccessControl\Exception Cannot add the new access entity "{name}".
Adds an access entity . Returns the uuid of the access entity or false if the access entity can not inserted .