original_string: public function getGenericResources($limit = 10, $mode = AbstractQuery::HYDRATE_OBJECT)
      {
          $builder = $this->getEntityManager()->createQueryBuilder();
  
          $builder->select('e')
              ->from($this->getEntity(), 'e')
              ->where('e.isGeneric = 1')
              ->setMaxResults($limit);
  
          $query = LocaleAwareTrait::addHints($builder->getQuery());
  
          return $query->execute($mode);
      }
code: public function getGenericResources($limit = 10, $mode = AbstractQuery::HYDRATE_OBJECT)
      {
          $builder = $this->getEntityManager()->createQueryBuilder();
  
          $builder->select('e')
              ->from($this->getEntity(), 'e')
              ->where('e.isGeneric = 1')
              ->setMaxResults($limit);
  
          $query = LocaleAwareTrait::addHints($builder->getQuery());
  
          return $query->execute($mode);
      }
code_tokens: public function getGenericResources ( $ limit = 10 , $ mode = AbstractQuery :: HYDRATE_OBJECT ) { $ builder = $ this -> getEntityManager ( ) -> createQueryBuilder ( ) ; $ builder -> select ( 'e' ) -> from ( $ this -> getEntity ( ) , 'e' ) -> where ( 'e.isGeneric = 1' ) -> setMaxResults ( $ limit ) ; $ query = LocaleAwareTrait :: addHints ( $ builder -> getQuery ( ) ) ; return $ query -> execute ( $ mode ) ; }
docstring: List Generic Resources
  
  @param int $limit
  @param int $mode
  
  @return mixed
docstring_tokens: List Generic Resources