mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #151] [MERGED] DDC-1385 #7779
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/151
Author: @beberlei
Created: 10/16/2011
Status: ✅ Merged
Merged: 10/31/2011
Merged by: @beberlei
Base:
master← Head:DDC-1385📝 Commits (4)
cb0e5dbDDC-1385 - Fixed Mixed result hydration using INDEX BY to work on the top-level indexes, not some weird result. This is a BC break to those that actually use this crazy logic, sorry for that :-)2730f64DDC-1385 - Refactor ObjectHydratoree924ffDDC-1385 - Fix scalar handling for array hydrator8466060DDC-1385 - Add INDEX BY scalar variables on the top-level📊 Changes
6 files changed (+233 additions, -67 deletions)
View changed files
📝
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php(+26 -20)📝
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php(+27 -22)📝
lib/Doctrine/ORM/Query/ResultSetMapping.php(+35 -1)📝
lib/Doctrine/ORM/Query/SqlWalker.php(+20 -5)📝
tests/Doctrine/Tests/ORM/Hydration/ArrayHydratorTest.php(+47 -8)📝
tests/Doctrine/Tests/ORM/Hydration/ObjectHydratorTest.php(+78 -11)📄 Description
This branch does multiple things:
Fix how INDEX BY works with mixed results. The index is now on the top level, not inside the mixed result.
Add support for INDEX BY in scalar only queries.
The following BC Breaks had to be made:
Todos:
Please code review.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.