original_string: public function get($id)
      {
          try {
              $em = $this->entityManager->getDoctrineEntityManager();
              $accessEntity = $em->getRepository($this->getEntityClass())->findOneBy(array(
                  'id' => $id,
              ));
              
              if ($accessEntity !== null) {
                  return $accessEntity;
              }
              
              return false;
          } catch (\Exception $e) {
              throw new Exception('Cannot load the entity from the database for the given id "' . $id . '".', 0, $e);
          }
      }
code: public function get($id)
      {
          try {
              $em = $this->entityManager->getDoctrineEntityManager();
              $accessEntity = $em->getRepository($this->getEntityClass())->findOneBy(array(
                  'id' => $id,
              ));
              
              if ($accessEntity !== null) {
                  return $accessEntity;
              }
              
              return false;
          } catch (\Exception $e) {
              throw new Exception('Cannot load the entity from the database for the given id "' . $id . '".', 0, $e);
          }
      }
code_tokens: public function get ( $ id ) { try { $ em = $ this -> entityManager -> getDoctrineEntityManager ( ) ; $ accessEntity = $ em -> getRepository ( $ this -> getEntityClass ( ) ) -> findOneBy ( array ( 'id' => $ id , ) ) ; if ( $ accessEntity !== null ) { return $ accessEntity ; } return false ; } catch ( \ Exception $ e ) { throw new Exception ( 'Cannot load the entity from the database for the given id "' . $ id . '".' , 0 , $ e ) ; } }
docstring: Returns the entity object for the given id
  
  @param integer $id
  @return false|mixed
  
  @throws \Zepi\DataSource\Doctrine\Exception Cannot load the entity from the database for the given id "{id}".
docstring_tokens: Returns the entity object for the given id