original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: 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}".
docstring_tokens: Returns true if there is a permission for the given id