Changeset 5333 for branches/1.1/lib/Doctrine/Hydrator.php
- Timestamp:
- 01/05/09 15:00:05 (19 months ago)
- Files:
-
- 1 modified
-
branches/1.1/lib/Doctrine/Hydrator.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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;