Changeset 5333
- Timestamp:
- 01/05/09 20:00:05 (6 months ago)
- Location:
- branches
- Files:
-
- 2 modified
-
1.0/lib/Doctrine/Hydrator.php (modified) (2 diffs)
-
1.1/lib/Doctrine/Hydrator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Hydrator.php
r5015 r5333 142 142 if ($field = $this->_getCustomIndexField($rootAlias)) { 143 143 if (isset($result[$field])) { 144 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping .");144 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping named '$field'."); 145 145 } else if ( ! isset($element[$field])) { 146 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key .");146 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key named '$field'."); 147 147 } 148 148 $result[$element[$field]] = $element; … … 208 208 if ($field = $this->_getCustomIndexField($dqlAlias)) { 209 209 if (isset($prev[$parent][$relationAlias][$element[$field]])) { 210 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping .");210 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping named '$field'."); 211 211 } else if ( ! isset($element[$field])) { 212 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key .");212 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key named '$field'."); 213 213 } 214 214 $prev[$parent][$relationAlias][$element[$field]] = $element; -
branches/1.1/lib/Doctrine/Hydrator.php
r5073 r5333 170 170 if ($field = $this->_getCustomIndexField($rootAlias)) { 171 171 if (isset($result[$field])) { 172 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping .");172 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping named '$field'."); 173 173 } else if ( ! isset($element[$field])) { 174 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key .");174 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key named '$field'."); 175 175 } 176 176 $result[$element[$field]] = $element; … … 238 238 if ($field = $this->_getCustomIndexField($dqlAlias)) { 239 239 if (isset($prev[$parent][$relationAlias][$element[$field]])) { 240 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping .");240 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found non-unique key mapping named '$field'."); 241 241 } else if ( ! isset($element[$field])) { 242 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key .");242 throw new Doctrine_Hydrator_Exception("Couldn't hydrate. Found a non-existent key named '$field'."); 243 243 } 244 244 $prev[$parent][$relationAlias][$element[$field]] = $element;