original_string: public function matching(Criteria $criteria): array
      {
          $queryBuilder = $this->entityManager->createQueryBuilder()
              ->select('e.id')
              ->from($this->getEntityName(), 'e');
  
          $queryBuilder->addCriteria($criteria);
  
          $ids = $queryBuilder->getQuery()->getResult(ColumnHydrator::HYDRATOR_MODE);
  
          if (count($ids) === 0) {
              return [];
          }
  
          return $this->findByIds($ids);
      }
code: public function matching(Criteria $criteria): array
      {
          $queryBuilder = $this->entityManager->createQueryBuilder()
              ->select('e.id')
              ->from($this->getEntityName(), 'e');
  
          $queryBuilder->addCriteria($criteria);
  
          $ids = $queryBuilder->getQuery()->getResult(ColumnHydrator::HYDRATOR_MODE);
  
          if (count($ids) === 0) {
              return [];
          }
  
          return $this->findByIds($ids);
      }
code_tokens: public function matching ( Criteria $ criteria ) : array { $ queryBuilder = $ this -> entityManager -> createQueryBuilder ( ) -> select ( 'e.id' ) -> from ( $ this -> getEntityName ( ) , 'e' ) ; $ queryBuilder -> addCriteria ( $ criteria ) ; $ ids = $ queryBuilder -> getQuery ( ) -> getResult ( ColumnHydrator :: HYDRATOR_MODE ) ; if ( count ( $ ids ) === 0 ) { return [ ] ; } return $ this -> findByIds ( $ ids ) ; }
docstring: Gets all entities matching query criteria
  
  @param Criteria $criteria
  
  @return array
docstring_tokens: Gets all entities matching query criteria