src/Repository/Doctrine/Repository.php
protected function makeNoResultException(\Exception $e, Query $q) {
        return new NoResultException($e, $this->replaceQueryParameters($q->getDQL(), $q->getParameters()));
    }
protected function makeNoResultException(\Exception $e, Query $q) {
        return new NoResultException($e, $this->replaceQueryParameters($q->getDQL(), $q->getParameters()));
    }
Creates a NoResultException from a QueryBuilder

@param \Exception                    $e
@param \Doctrine\ORM\QueryBuilder    $qb
@return \Oxygen\Data\Exception\NoResultException