Changeset 3547

Show
Ignore:
Timestamp:
01/18/08 17:11:01 (18 months ago)
Author:
romanb
Message:

Fixed a bug where the hydration mode HYDRATE_NONE was not recognized when set through setHydrationMode

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.10/lib/Doctrine/Hydrator.php

    r3295 r3547  
    6161    public function hydrateResultSet($stmt, $tableAliases, $hydrationMode = null) 
    6262    { 
    63         //$s = microtime(true); 
     63        if ($hydrationMode === null) { 
     64            $hydrationMode = $this->_hydrationMode; 
     65        } 
    6466         
    6567        $this->_tableAliases = $tableAliases; 
     
    6769        if ($hydrationMode == Doctrine::HYDRATE_NONE) { 
    6870            return $stmt->fetchAll(PDO::FETCH_NUM); 
    69         } 
    70          
    71         if ($hydrationMode === null) { 
    72             $hydrationMode = $this->_hydrationMode; 
    7371        } 
    7472