public function hasPermissionForId($id)
    {
        try {
            $em = $this->entityManager->getDoctrineEntityManager();
            $permission = $em->getRepository('\\Zepi\\Core\\AccessControl\\Entity\\Permission')->find($id);
            
            if ($permission !== null) {
                return true;
            }
            
            return false;
        } catch (\Exception $e) {
            throw new Exception('Cannot check if there is a permission for the given id "' . $id . '".', 0, $e);
        }
    }
public function hasPermissionForId($id)
    {
        try {
            $em = $this->entityManager->getDoctrineEntityManager();
            $permission = $em->getRepository('\\Zepi\\Core\\AccessControl\\Entity\\Permission')->find($id);
            
            if ($permission !== null) {
                return true;
            }
            
            return false;
        } catch (\Exception $e) {
            throw new Exception('Cannot check if there is a permission for the given id "' . $id . '".', 0, $e);
        }
    }
public function hasPermissionForId ( $ id ) { try { $ em = $ this -> entityManager -> getDoctrineEntityManager ( ) ; $ permission = $ em -> getRepository ( '\\Zepi\\Core\\AccessControl\\Entity\\Permission' ) -> find ( $ id ) ; if ( $ permission !== null ) { return true ; } return false ; } catch ( \ Exception $ e ) { throw new Exception ( 'Cannot check if there is a permission for the given id "' . $ id . '".' , 0 , $ e ) ; } }
Returns true if there is a permission for the given id

@access public
@param integer $id
@return boolean

@throws \Zepi\Core\AccessControl\Exception Cannot check if there is a permission for the given id "{id}".
Returns true if there is a permission for the given id