Guilherme Blanco
14f20c16bc
Changed the RSM to make is behavior as mixed if you alias an entity.
2011-11-15 15:14:57 -02:00
Guilherme Blanco
81cc6d9da8
Implemented alias support for EntityResult. This addresses DDC-1096 and DDC-1424. Improved DQL Parser, SQL Walker and Hydrators in general. Performance is generally improved by a factor of 20%. There is still more to be done, like remove the isMixed in ResultSetMapping, mainly because this query - SELECT u AS user FROM User u -, it should return an array('user' => [User object]), while currently it doesn't due to this before mentioned 'bug' in RSM. Will open a separate ticket for this. Also, UnitOfWork and Hydrators share code that could be abstracted/improved.
2011-11-14 01:36:39 -02:00
Benjamin Eberlei
ee924ffaba
DDC-1385 - Fix scalar handling for array hydrator
2011-10-16 16:27:50 +02:00
Benjamin Eberlei
0252d55c67
DDC-1358 - Fix bug where multiple NULL root entity combined with scalar results will break the object and array hydrator.
...
This case likeli only occurs when doing native queries. A guard clause that prevents hydration from breaking
when RIGHT JOIN queries with null root entities appear has been added aswell.
2011-10-16 11:15:45 +02:00
Benjamin Eberlei
d6a1075b53
DDC-644 - Added more tests for Hydrators and unknown to be skipped columns
2010-07-28 22:09:43 +02:00
romanb
639718e95c
[2.0][DDC-335][DDC-347][DDC-317] Fixed. Also prepared DQL for CASE/COALESCE/NULLIF support.
2010-02-19 21:28:17 +00:00
romanb
8797921937
[2.0] Removed AssociationMappings from ResultSetMapping for improved caching. Fixed caching issue with reflection classes and properties. Reimplemented and leaned up broken identifier quoting. Added support for named (native) queries. Fixed small hydration memory leak.
2009-08-11 10:51:38 +00:00
romanb
f28127664c
[2.0] Cleanups, build fixes.
2009-06-15 18:25:47 +00:00
romanb
a421692679
[2.0] Fixed Query Cache (+testcase) and some E_STRICT errors.
2009-05-21 19:18:14 +00:00
romanb
ee46dba332
[2.0] Moved code between Query and AbstractQuery. Added first NativeQuery implementation. Hydration work and code movements for discriminator column usage. Started implementing Single Table Inheritance.
2009-04-12 19:02:12 +00:00
romanb
523c93c2f1
[2.0] Refactored SQL query building process and hydration. Hydration should now support result sets with any number of root components. Introducing ResultSetMapping that is used by hydration instead of queryComponents. This allows mapping of arbitrary SQL queries (NativeQuery).
2009-04-09 18:12:48 +00:00
romanb
62204af804
[2.0] Ongoing work on Query/DQL implementation and tests.
2009-04-03 11:06:58 +00:00
jwage
68147808f6
[2.0] Cleaning up tests and removing some unused files to remove any confusion
2009-02-18 07:59:11 +00:00
romanb
0ac97e7adf
[2.0] Making use of new constant __DIR__
2009-01-24 16:56:44 +00:00
romanb
22e94ac594
Enabling namespaces. Final restructurings.
2009-01-22 19:38:10 +00:00