Jan Dolecek
12c3a42d8c
fixed phpDoc and typos
2011-12-30 20:06:20 +01:00
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
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
Benjamin Eberlei
5b5fb2b732
DDC-1514 - Fix complex self-referencing + proxy hydration problem.
2011-12-15 23:00:01 +01: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
2f6b930a8d
Implemented missing support in CollectionMemberComparison. Removed old todo in ArrayHydrator. Finished implementation of IdentificationVariable in ArithmeticPrimary.
2011-12-03 15:19:21 -05: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
afb8d63fcb
Fixed some AbstractHydrator docblocks
2011-11-01 16:42:03 +01: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
ee924ffaba
DDC-1385 - Fix scalar handling for array hydrator
2011-10-16 16:27:50 +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
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
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
b7e522d7a7
DDC-952 - This nasty inheritance hydration bug slipped in again, fixed again now.
2011-03-15 23:39:19 +01:00
Benjamin Eberlei
1b46208aa5
[DDC-952] More fixes
2011-03-15 21:34:47 +01:00
Benjamin Eberlei
b3c01903b4
DDC-952 - Optimization
2011-03-15 20:03:05 +01:00
Benjamin Eberlei
a04ba44874
[DDC-952] Introduced SimpleObjectHydrator again for performance reasons.
2011-03-15 19:48:04 +01: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
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
e7b4dca611
Merge master into DDC-117
2010-12-28 17:27:47 +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
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
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
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
Guilherme Blanco
889094709e
[2.0] Added support to IdentificationVariable that was missing in ArithmeticPrimary (it was not correctly handling it). Uncommented a unit test that added coverage to it.
2010-04-14 00:04:44 -03:00