Stefan Kleff
e561f47cb2
Added constant
2013-04-08 11:27:22 +02:00
Szczepan Cieślik
d7f82221d1
[DDC-2256] Moved aliases translation to ResultSetMapping, fixed tests.
2013-01-25 12:06:13 +01:00
Szczepan Cieślik
23e0bb7345
Fixed ObjectHydrator when namespace alias is given.
2013-01-24 15:50:05 +01:00
Benjamin Morel
774bb3fec4
Fixed missed documentation issues in Doctrine\ORM
2012-12-14 20:12:56 +00:00
Benjamin Morel
4714a53c32
Fixed documentation for ORM\Internal
2012-12-02 19:46:34 +00:00
Fabio B. Silva
5f89fa4190
fix CS
2012-09-29 16:19:03 -03:00
Fabio B. Silva
1bd6e841bf
Fix some CS
2012-09-29 16:19:02 -03:00
Fabio B. Silva
3aa8d3fdac
test constructor exceptions
2012-09-29 16:19:01 -03:00
Fabio B. Silva
91efe10855
fix some cs on ObjectHydrator
2012-09-29 16:19:01 -03:00
Fabio B. Silva
4dca27962e
support multiple operators
2012-09-29 16:19:01 -03:00
Fabio B. Silva
b29d47a682
cache new object mappings
2012-09-29 16:18:58 -03:00
Fabio B. Silva
0fbb78e61a
basic support, need some code refactory and improvements
2012-09-29 16:18:57 -03:00
Benjamin Eberlei
7c1235dedb
[DDC-1964] Fix issue with refresh and and object hydrator not setting field to null explicitly to override possible previous values.
2012-07-29 11:25:45 +02:00
Adel
51cd553de8
Fix phpdocs
2012-07-11 22:44:07 +00:00
Benjamin Eberlei
44c867827c
[DDC-1783] Fix memory leak in ObjectHydrator when using AbstractQuery#iterate() and EntityManager#clear()
2012-05-27 12:00:43 +02:00
Benjamin Eberlei
70458b2f48
LGPL => MIT
2012-05-26 14:37:00 +02:00
Fabio B. Silva
9cee329407
Fix CS
2012-03-15 22:38:54 -03:00
Fabio B. Silva
36dc560533
Fix DDC-1470
2012-03-15 21:29:52 -03:00
Benjamin Eberlei
d995c6dbdc
[DDC-1655][DDC-1650][DDC-1556] Fix issues with @postLoad Callback being not fired, or fired multiple times.
2012-02-17 23:27:16 +01:00
Benjamin Eberlei
3407620bf8
[DDC-1526] Collections are not marked as initialized when they are fetch joined but dont contain any results. This only occurs when using LEFT JOINs on the assocations and causes another query to be fired when the empty collection is accessed again.
2012-01-28 12:28:16 +01:00
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
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