nclavaud
b492d61398
Update identityMap when entity gets managed again
...
http://www.doctrine-project.org/jira/browse/DDC-3619
When using SoftDeleteable doctrine extension, an entity can be scheduled
for deletion, then persisted before flushing. In such a case, the entity
was removed from the unit of work identity map and no reference was
hold. This could lead to spl_object_hash collisions, and prevent
another, new entity to be persisted later.
This fix makes sure the unit of work identity map holds a reference to
the entity after it has been soft-deleted.
2015-03-17 22:19:10 +00:00
Marco Pivetta
5c89bb8c6b
#1336 DDC-3622 - removing implicit cast from string
to CustomIdObject
in entity API (confusing)
2015-03-17 21:29:30 +00:00
Marco Pivetta
712b6a7a64
#1336 DDC-3622 - adding @group
annotations for newly introduced tests
2015-03-17 21:23:16 +00:00
Marco Pivetta
11da060668
#1336 - class constants over string references in tests - removing useless QueryBuilder usage
2015-03-17 21:21:20 +00:00
Stefano Torresi
c7ad932b5f
fix copyright notices
2015-03-17 21:08:07 +00:00
Stefano Torresi
41e873bd72
add failing functional test for custom id object types
2015-03-17 21:08:06 +00:00
Volker von Hoesslin
0824c6136d
unittest DDC3597: fix for PHP 5.4
2015-03-04 11:55:08 +01:00
Volker von Hoesslin
2aef87c9b2
add unittest for DDC3597
2015-03-03 16:59:48 +01:00
Guilherme Blanco
6e40361fe7
Merge pull request #1311 from jankramer/DDC-3582-nested-embeddable-hydration
...
[DDC-3582] Wrong class is instantiated when using nested embeddables
2015-02-27 10:31:58 -05:00
Jan Kramer
c059de9e60
Implement test to show nested embeddables are not instantiated properly
2015-02-27 15:09:22 +01:00
FabioBatSilva
57bcd7cd3d
DATE_ADD - Support for seconds
2015-02-25 14:32:51 -05:00
Guilherme Blanco
4680a7b861
Fixed bug where embedded reflection fields were never exposed to userland.
2015-02-20 14:10:28 -05:00
Asmir Mustafic
2e890362c5
Tested second level cache with composite primary keys
2015-02-16 00:53:46 +00:00
Asmir Mustafic
7222991b13
Tested composite primary key support
2015-02-16 00:53:46 +00:00
Marco Pivetta
e76b20b109
#1169 DDC-3343 - removing note about query count assertion
2015-01-28 20:01:57 +00:00
Marco Pivetta
c4019d96b9
#1169 DDC-3343 - when a deletion fails for some reason, related cache entries should be evicted to avoid collisions with DB state
2015-01-27 09:03:36 +01:00
Marco Pivetta
3f28adf9b6
#1169 DDC-3343 - correcting collection name used in tests
2015-01-27 07:45:58 +01:00
Marco Pivetta
a0eb6005f3
#1169 DDC-3343 - adding tests for orphan-removal + extra-lazy + one-to-many element removal behavior
2015-01-27 07:42:48 +01:00
Marco Pivetta
539c364ca6
#1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified.
2015-01-27 06:26:55 +01:00
Marco Pivetta
9839c400b8
#1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified.
2015-01-27 06:19:26 +01:00
Marco Pivetta
146354d835
Merge pull request #1280 from Ocramius/hotfix/#1277-find-one-with-eager-loads-is-failing
...
[DDC-3346] #1277 find one with eager loads is failing
2015-01-25 06:00:47 +01:00
Marco Pivetta
d024193cc0
Merge pull request #1272 from Ocramius/hotfix/DDC-2704-merge-inherited-transient-properties
...
[DDC-2704] - merge inherited transient properties - merge properties into uninitialized proxies
2015-01-25 05:55:53 +01:00
Marco Pivetta
7e85c94f48
#1169 DDC-3343 - adapting cached collection persister logic to EXTRA_LAZY collection behavior
2015-01-25 04:40:30 +01:00
Marco Pivetta
dff365318d
#1277 DDC-3346 DDC-3531 - enforcing 0
offset to avoid persisting more than 1 row
2015-01-24 14:39:47 +01:00
Marco Pivetta
186c593058
#1277 DDC-3346 DDC-3531 - proper bi-directional association setup
2015-01-24 14:39:46 +01:00
Marco Pivetta
39a8941d1b
#1277 DDC-3346 DDC-3531 - minor CS fixes/cleanups: avoiding setters
2015-01-24 14:39:46 +01:00
Marco Pivetta
36bc448880
#1277 DDC-3346 DDC-3531 - refactoring test code for simplicity/readability
2015-01-24 14:39:46 +01:00
Marco Pivetta
16f447d1ac
#1277 DDC-3346 DDC-3531 - correct usage of the model set (setUp/tearDown of model-related tables)
2015-01-24 14:39:46 +01:00
Marco Pivetta
6e3ad496e2
#1277 DDC-3346 DDC-3531 - constants over string references
2015-01-24 14:39:45 +01:00
Marco Pivetta
157bf203bc
#1277 DDC-3346 DDC-3531 - additional tests for LIMIT and OFFSET repository API (must not hydrate collections)
2015-01-24 14:39:45 +01:00
Pavel Batanov
981cebbf4c
Update test according to @Ocramius notes
2015-01-24 14:39:43 +01:00
Pavel Batanov
e36c7b0c2a
DDC-3346 failing test example
2015-01-24 14:39:42 +01:00
Marco Pivetta
91f4ed8b92
DDC-2704 - data should be merged only into initialized proxies
2015-01-24 13:22:16 +01:00
Marco Pivetta
21995a8b10
DDC-2704 - more explicit value checking
2015-01-24 13:22:16 +01:00
Marco Pivetta
5ae980e0f9
DDC-2704 - reducing test case clutter
2015-01-24 13:22:15 +01:00
Marco Pivetta
302e6218bb
DDC-2704 - renaming test case for clarity
2015-01-24 13:22:15 +01:00
Marco Pivetta
942004226c
DDC-2704 - basic test case verifying that merged transient properties are not handled when in an inheritance
2015-01-24 13:22:15 +01:00
Marco Pivetta
01a9dadee7
#1169 DDC-3343 - removed unused imports
2015-01-24 12:54:40 +01:00
Marco Pivetta
b7b716a6bb
#1169 DDC-3343 - moved tests to correct test class
2015-01-24 12:53:48 +01:00
Marco Pivetta
d443d4f3b6
#1169 DDC-3343 - additional test cases: removing proxies from an extra-lazy collection still updates the owning side values
2015-01-24 12:21:21 +01:00
Marco Pivetta
6a2b7c2a8e
#1169 DDC-3343 - correcting query count assertions on extra-lazy specific tests (some DELETE operations became UPDATE operations)
2015-01-24 12:20:33 +01:00
Marco Pivetta
99c5650ba4
#1169 DDC-3343 - removing duplicate test
2015-01-24 11:59:21 +01:00
Marco Pivetta
a8796fa489
#1169 DDC-3343 - integrating tests into the existing test suite
2015-01-24 11:58:57 +01:00
Marco Pivetta
ff986a9bf5
#1169 DDC-3343 - importing used classe
2015-01-24 11:54:58 +01:00
Marco Pivetta
ed0331d25a
#1169 DDC-3343 - optimized imports
2015-01-24 11:54:32 +01:00
Marco Pivetta
43f301fdad
#1169 DDC-3343 - refactoring test to use pre-existing test models
2015-01-24 11:54:17 +01:00
Marco Pivetta
aed01ea571
#1169 DDC-3343 - minor refactoring: constant over string reference
2015-01-24 11:41:20 +01:00
Andrea Sprega
c2b3348f99
[DDC-3343] Failing test case (updated)
2015-01-24 11:30:17 +01:00
Andrea Sprega
db3697433b
[DDC-3343] Failing test case
2015-01-24 11:30:17 +01:00
Marco Pivetta
8305649a45
#1176 DDC-3378 - refactored test logic to use the newly introduced test assets
2015-01-22 12:10:39 +01:00