Benjamin Eberlei
cd6131c9b8
Remove all trailing whitespaces
2011-12-19 22:56:19 +01:00
Benjamin Eberlei
bf32125bad
DDC-1545 - Fix issue with changing values from null to something new.
...
This issue was introduced by a side-effect in 2.1.3 with
d9f9228d95c5ab2a200b3e2d2b358c598267afb1. In this commit read-only
objects where prevented to be updated. This lead to an invalid check not
being performed in UnitOfWork#computeChangeSet which was present before
where an association that was null would be injected into the
originalEntityData using the UnitOfWork#setOriginalEntityProperty()
method in the AbstractHydrator.
This commit now explicitly sets this field to null using the same API so
that is present during UnitOfWork#computeChangeSet.
2011-12-19 17:55:19 +01:00
Benjamin Eberlei
5b5fb2b732
DDC-1514 - Fix complex self-referencing + proxy hydration problem.
2011-12-15 23:00:01 +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
5b73f1bd82
Improved code readability. Improved performance.
2011-11-30 09:57:54 -05:00
Guilherme Blanco
24f6b74427
Refactored UnitOfWork::createEntity, improving its performance.
2011-11-29 10:36:32 -05:00
Guilherme Blanco
77e076f1fd
Fixed DDC-1492.
2011-11-15 01:10:27 -02:00
Guilherme Blanco
45d95ad130
Fixed wrong indentation by my previous commit.
2011-11-15 01:09:48 -02:00
Benjamin Eberlei
34c94dbd94
DDC-1452 - Fixed bug with multiple fetch joins of the same "propery-path" of Class+field name combinations
2011-11-14 23:05:33 +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
4b316ec54f
DDC-1389 - Add validation for empty discriminator map values
2011-10-31 23:35:41 +01:00
Benjamin Eberlei
c38d273c1f
Merge pull request #151 from doctrine/DDC-1385
...
DDC-1385
2011-10-31 15:10:54 -07:00
Benjamin Eberlei
7be98f475e
DDC-1410 - Remove code-inlining that caused problems
2011-10-28 23:45:23 +02:00
Benjamin Eberlei
8466060797
DDC-1385 - Add INDEX BY scalar variables on the top-level
2011-10-16 19:23:20 +02:00
Benjamin Eberlei
2730f64d90
DDC-1385 - Refactor ObjectHydrator
2011-10-16 16:13:59 +02:00
Benjamin Eberlei
cb0e5dbff3
DDC-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 :-)
2011-10-16 12:46:17 +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
bcc7bb1c9c
DDC-1300 - Fix bug in fetch join hydration of entities with foreign key identifier
2011-08-06 20:25: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
Francis Besset
a141aaf663
[PR-39] Throw exception when hydrating joined entity without existing parent alias (NativeQuery problem only)
2011-05-01 00:17:40 +02:00
Benjamin Eberlei
1bc4b62805
[DDC-952] Make collection loading work with hydrators also.
2011-03-13 00:15:50 +01: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
32df9451fd
DDC-952 - Implemented first approach for batching eager loads of ToOne associations.
2011-03-05 11:08:41 +01:00
Roman S. Borschel
4f71c3e6a3
[DDC-812] Fix uninitialized collections of managed entities not being initialized on subsequent fetch-join.
2010-10-31 11:07:26 +01:00
Benjamin Eberlei
35860d9a94
Fix for DDC-839: Fetch joined collections are not initialized correctly.
2010-10-29 13:14:35 +02:00
Benjamin Eberlei
c70f32f4c9
DDC-809 - Fix nasty issue in ObjectHydrator yielding Many-To-Many hydration problems with multi-valued collections that are join-fetched.
2010-09-21 00:32:07 +02:00
Roman S. Borschel
5178f4b7d6
Corrected TO_ONE check just to be sure.
2010-08-09 22:48:07 +02:00
Roman S. Borschel
8d3e0e61ea
Moved association mappings to plain arrays, just like field mappings.
2010-08-09 22:48:07 +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
Roman S. Borschel
7cc56c45d3
[DDC-193] Fixed.
2010-04-10 00:00:36 +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
536aca23da
[2.0][DDC-371] Fixed together with other hydration/initialization issues.
2010-02-27 17:48:18 +00:00
romanb
e235044c47
[2.0] Fixed query and result cache to work nice together and avoid unnecessary cache lookups.
2010-02-25 15:47:20 +00: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
94d41dfbdc
[2.0][DDC-279] Fixed.
2010-01-29 21:24:29 +00:00
romanb
3a39bea9f0
[2.0][DDC-171] Fixed.
2009-12-09 16:06:39 +00:00
romanb
909e98c6f2
[2.0][DDC-202][DDC-132][DDC-185] Fixed.
2009-12-09 12:37:57 +00:00
romanb
304e2286e2
[2.0][DDC-199] Fixed.
2009-12-07 20:35:44 +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
15f84f6eb0
[2.0][DDC-187] Fixed. Also fixed some DBAL failures on postgres.
2009-12-03 13:17:56 +00:00
romanb
f572c372dc
[2.0] Fixed DDC-18. Simplified proxy classes. Just 1 proxy class per entity now, instead of 2.
2009-10-28 15:32:55 +00:00
romanb
e2d678cc10
[2.0] Refactorings to reduce duplicated code and increase efficiency.
2009-10-22 12:50:58 +00:00
romanb
c54d582568
[2.0] Added test coverage for native query with joined one-to-one association.
2009-10-22 09:10:59 +00:00
romanb
2a16782528
[2.0][DDC-56] Fixed.
2009-10-18 20:36:02 +00:00
romanb
cc59231993
[2.0] Removed old comment.
2009-10-16 10:39:44 +00:00
romanb
9bb17475ed
[2.0] Fixed hydration issue with bidirectional one-to-many associations. Added more test coverage for some advanced association queries and lazy-loading.
2009-10-16 10:35:46 +00:00
romanb
0b3ae4b169
[2.0] Removed all remaining references to deprecated allowPartialObjects option.
2009-10-15 19:03:27 +00:00