Example #1
0
 /**
  * Hook to allow preparation of a SQL result just before
  * it's returned to the caller.
  *
  * @param  Doctrine\DBAL\Driver\Statement  $stmt
  * @param  string                          $strategy
  * @api
  */
 protected function prepareStatement($stmt, $strategy)
 {
     $collection = new Collection($stmt);
     if ($strategy) {
         $collection->fetchAs($strategy);
     }
     return $collection;
 }