/**
  * @return array
  */
 public function fetchData()
 {
     $data = self::fetchDataFromQuery($this->getQueryBuilder(), $this->getHydrationMode(), $this->conditions, $this->getQueryBuilder()->getMaxResults(), $this->getQueryBuilder()->getFirstResult(), $this->queryDefinition->getQueryHints(), $this->getFetchJoinCollections(), $this->getUseOutputWalkers());
     if ($postFetch = $this->queryDefinition->postFetch($this->repository, $data)) {
         $data = $postFetch;
     }
     return $data;
 }
 /**
  * @return array
  */
 public function fetchData()
 {
     $query = $this->getQuery();
     foreach ($this->conditions as $condition) {
         BaseDataSource::makeWhere($query, $condition);
     }
     $data = $query->getQuery()->getResult($this->getHydrationMode());
     if ($postFetch = $this->queryDefinition->postFetch($this->repository, $data)) {
         $data = $postFetch;
     }
     return $data;
 }