Changeset 5074
- Timestamp:
- 10/13/08 17:55:52 (9 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
1.0/lib/Doctrine/Query/Abstract.php (modified) (3 diffs)
-
1.1/lib/Doctrine/Query/Abstract.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Query/Abstract.php
r5071 r5074 959 959 } 960 960 961 $this->_preQuery(); 961 $params = $this->getParams($params); 962 963 $this->_preQuery($params); 962 964 963 965 if ($hydrationMode !== null) { 964 966 $this->_hydrator->setHydrationMode($hydrationMode); 965 967 } 966 967 $params = $this->getParams($params);968 968 969 969 if ($this->_resultCache && $this->_type == self::SELECT) { … … 1041 1041 * @return void 1042 1042 */ 1043 protected function _preQuery( )1043 protected function _preQuery($params = array()) 1044 1044 { 1045 1045 if ( ! $this->_preQueried && $this->getConnection()->getAttribute('use_dql_callbacks')) { … … 1054 1054 1055 1055 $copy = $this->copy(); 1056 $copy->getSqlQuery( );1056 $copy->getSqlQuery($params); 1057 1057 1058 1058 foreach ($copy->getQueryComponents() as $alias => $component) { -
branches/1.1/lib/Doctrine/Query/Abstract.php
r5071 r5074 1051 1051 } 1052 1052 1053 $this->_preQuery(); 1053 $dqlParams = $this->getParams($params); 1054 1055 $this->_preQuery($dqlParams); 1054 1056 1055 1057 if ($hydrationMode !== null) { 1056 1058 $this->_hydrator->setHydrationMode($hydrationMode); 1057 1059 } 1058 1059 // Retrieve DQL params1060 $dqlParams = $this->getParams($params);1061 1060 1062 1061 if ($this->_resultCache && $this->_type == self::SELECT) { … … 1143 1142 * @return void 1144 1143 */ 1145 protected function _preQuery( )1144 protected function _preQuery($params = array()) 1146 1145 { 1147 1146 if ( ! $this->_preQueried && $this->getConnection()->getAttribute('use_dql_callbacks')) { … … 1156 1155 1157 1156 $copy = $this->copy(); 1158 $copy->getSqlQuery( );1157 $copy->getSqlQuery($params); 1159 1158 1160 1159 foreach ($copy->getQueryComponents() as $alias => $component) {