Guilherme Blanco
ea14bcff4a
Fixed DDC-657. Added type conversion to scalar result.
2012-01-13 20:46:59 -05:00
Jan Dolecek
12c3a42d8c
fixed phpDoc and typos
2011-12-30 20:06:20 +01:00
Guilherme Blanco
68663fac4b
Fixed issue when one to one badly populated when containing null values. Fixed DDC-1548.
2011-12-19 10:55:29 -05:00
Andrew Mackrodt
ef12a09ae0
Added remaining absolute namespace paths to phpdoc annotations - issue DDC-1025.
2011-12-11 21:56:27 +00:00
Andrew Mackrodt
2fdb55a878
Added absolute namespace paths to phpdoc annotations - issue DDC-1025.
2011-12-11 21:56:26 +00:00
Benjamin Eberlei
40d094fea2
DDC-1515 - Now the real bugfix
2011-12-11 17:08:58 +01:00
Benjamin Eberlei
57970499fd
Revert "DDC-1515 - Merge from 2.1.x"
...
This reverts commit bd0fb574e3
.
2011-12-11 16:11:16 +01:00
Benjamin Eberlei
bd0fb574e3
DDC-1515 - Merge from 2.1.x
2011-12-11 16:07:35 +01: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
Guilherme Blanco
d1bfd57fd9
Initial code optimization in Hydrators.
2011-11-02 22:08:24 -02:00
Benjamin Eberlei
afb8d63fcb
Fixed some AbstractHydrator docblocks
2011-11-01 16:42:03 +01: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
2858b8290f
DDC-1238 - Fixed a bug introduced when refactoring persisters hydration. This occurs when you call $em->clear() and you start accessing a proxy.
2011-07-04 23:19:08 +02:00
Benjamin Eberlei
9ea03de84f
DDC-1080 - Fix bug with hydration of derived entities/foreign key as primary key.
2011-05-17 23:42:24 +02:00
Benjamin Eberlei
851f44a066
[DDC-952] [DDC-1050] Use ObjectHydrator inside Persisters, removing a bunch of duplicate code (step1, more necessary)
2011-03-06 21:26:54 +01:00
Benjamin Eberlei
f70ee3a038
DDC-997 - Fix bug in hydration that came up with DDC-117
2011-01-23 16:41:40 +01:00
Benjamin Eberlei
fb44fa6b5a
Fix hydration of Assoc-Id Entities, duplicate the hydration of the foreign key once for for use with the assoc-entity as a meta-column. Added isIdentifier capabilities to meta columns.
2010-08-15 18:58:25 +02:00
Benjamin Eberlei
56b3c0e8b0
DDC-644 - Added missing code for the _getScalarRowData()
2010-07-28 21:57:05 +02:00
Benjamin Eberlei
553e93ae27
DDC-644 - Fixed issue with undefined columns in ResultSetMapping by skipping them, added a functional test for modified limit query functionality
2010-07-28 21:50:25 +02:00
Roman S. Borschel
760ea34a0c
[DDC-497][DDC-500][DDC-342] Fixed. Persister polishing and refactoring. More to come for that, but after beta1.
2010-04-26 13:02:30 +02:00
romanb
354ede1e04
[2.0][DDC-354][DDC-425] Fixed. Encapsulated SQL logging better in the DBAL. Added binding types to DBAL mapping types as well as using these binding types in the persisters. Query and NativeQuery now support PDO binding types as well as DBAL mapping types when binding parameters.
2010-03-29 13:20:41 +00:00
romanb
a53c2fbd6c
[2.0] Code cleanups. Preparations for DDC-193. Fixed DDC-399, type configuration remains global for now but the irritating instance methods on the Configuration have been removed. Use Type::addType et al. Added TODOs for naming standards.
2010-03-15 17:19:00 +00:00
romanb
27e8023b9b
[2.0][DDC-152] Fixed.
2009-12-19 13:38:54 +00:00
romanb
3a39bea9f0
[2.0][DDC-171] Fixed.
2009-12-09 16:06:39 +00:00
romanb
1013eb66c1
[2.0] Fixed PHP Notice in SchemaTest (only variables should be passed by reference...) and a few other cosmetics in various parts.
2009-12-07 12:47:23 +00:00
romanb
ea4f5c172a
[2.0][DDC-149] Fixed.
2009-11-16 17:03:33 +00:00
romanb
4fc1781d78
[2.0][DDC-22] Fixed. Also cleaned up association handling. More to come: exception refactorings, proxy simplifications (single proxy class, not two).
2009-10-28 10:31:47 +00:00
romanb
59fff29c1b
[2.0] Some hydration simplifications and cleanups.
2009-08-28 10:48:40 +00:00
jwage
f83fd8e950
[2.0] Updating exceptions to use methods so that we can later provide better exception messages
2009-08-26 22:03:39 +00:00
romanb
00599a80d4
[2.0] Streamlined result structures. Hydration improvements: Small overall improvements, large improvement for (joined) fetched collections (~60%).
2009-08-03 13:25:56 +00:00
romanb
2ec4cc5cbe
[2.0] More cleanups for recent lazy-loading implementation and minor object hydration improvements and cleanups. Collection refactoring part I for ticket #2352 .
2009-07-29 11:57:27 +00:00
romanb
49434b0322
[2.0] Further cleanups. Started eager loading support.
2009-07-21 09:25:14 +00:00
romanb
a301834057
[2.0] First part of cleanup for changeset 6120. More to follow.
2009-07-20 15:30:54 +00:00
piccoloprincipe
0c623fdb9e
[2.0] Accomodate joincolumn names in the metadata, in the selection and the hydration processes. Improved Api of the ProxyFactory. Working implementation of lazy loading for *-to-one associations (affects #2348 )
2009-07-20 12:05:19 +00:00
romanb
4d146d321f
[2.0] Small hydration cleanups and improvements.
2009-07-20 10:52:07 +00:00
jwage
cc59161bea
[2.0] Adding missing _platform property
2009-06-20 13:56:46 +00:00
jwage
ada2c5c5a7
[2.0] Work on datetime dbal type and date portability
2009-06-20 12:59:33 +00:00
jwage
92b395cff2
[2.0] Removing last few dependencies on 2.0
2009-05-29 15:38:46 +00:00
romanb
a758b56551
[2.0] Introduced SQL logging facilities. Made Type constructor private to prevent instantiation and force use of the factory method getType().
2009-05-28 11:13:12 +00:00
romanb
a421692679
[2.0] Fixed Query Cache (+testcase) and some E_STRICT errors.
2009-05-21 19:18:14 +00:00
romanb
4d13925b1c
[2.0] Some hydration and DQL parser work.
2009-05-17 19:27:12 +00:00
romanb
96ef7eca13
[2.0] More small internal perf. improvements.
2009-05-14 18:34:12 +00:00
romanb
eea4391598
[2.0] Started adding performance regression tests. More object hydration performance improvements.
2009-05-14 14:57:08 +00:00
romanb
e79c45f9ac
[2.0] Fixed issues discovered during code coverage report generation. Made all ClassMetadata properties public (good reasons, read the class docblock). Performance improvements.
2009-05-14 10:03:09 +00:00
romanb
ecd30bc242
[2.0] Started to implement proxy object handling. Introduced a configuration switch for partial objects (allowPartialObjects) that defaults to TRUE. Setting to FALSE enables proxying and lazy-loading.
2009-05-13 15:19:27 +00:00
romanb
ae7be288e1
[2.0] Work on single table inheritance with more functional tests.
2009-05-03 10:58:16 +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
romanb
618c1281e4
[2.0] Parser work.
2009-03-21 19:58:52 +00:00