Changeset 3546

Show
Ignore:
Timestamp:
01/18/08 17:08:02 (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.9/lib/Doctrine/Hydrate.php

    r3503 r3546  
    10241024    public function parseData2($stmt, $hydrationMode) 
    10251025    { 
     1026        if ($hydrationMode === null) { 
     1027            $hydrationMode = $this->_hydrationMode; 
     1028        } 
     1029         
    10261030        if ($hydrationMode == Doctrine::HYDRATE_NONE) { 
    10271031            return $stmt->fetchAll(PDO::FETCH_NUM); 
     
    10331037        $componentName = $rootMap['table']->getComponentName(); 
    10341038        $isSimpleQuery = count($this->_aliasMap) <= 1; 
    1035          
    1036         if ($hydrationMode === null) { 
    1037             $hydrationMode = $this->_hydrationMode; 
    1038         } 
    10391039 
    10401040        if ($hydrationMode === Doctrine::HYDRATE_ARRAY) {