Esempio n. 1
0
 /**
  * @param BookEntity $bookEntity
  *
  * @return array
  */
 public function extractEntity(BookEntity $bookEntity)
 {
     return $this->bookRepository->extract($bookEntity);
 }
Esempio n. 2
0
 /**
  * @param QueryFilter $queryFilter
  * @param int         $hydrationMode
  *
  * @return BookEntity[]|null
  */
 public function getFilteredResults(QueryFilter $queryFilter, $hydrationMode = Query::HYDRATE_OBJECT)
 {
     $queryBuilderVisitor = new QueryFilterVisitor($queryFilter, $this->commandCollection);
     return $this->bookRepository->findByQueryFilter($queryBuilderVisitor, $hydrationMode);
 }