Ejemplo n.º 1
0
 /**
  * @param QueryBuilder|Query $qb
  * @param null         $bufferSize
  *
  * @return IterableResult
  */
 protected function getResultIterator($qb, $bufferSize = null)
 {
     $result = new IterableResult($qb);
     if ($bufferSize) {
         $result->setBufferSize($bufferSize);
     }
     return $result;
 }
 public function __construct($source)
 {
     parent::__construct($source);
     $source->setMaxResults($this->bufferSize);
 }