nclavaud
bac6570af1
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:38:57 +00:00
Marco Pivetta
11936a6cac
#1169 DDC-3343 - correcting functional test case cleanup logic (sorting deletes by FK dependencies)
2015-02-05 00:53:34 +00:00
Marco Pivetta
c4ab4db743
#1169 DDC-3343 - remove duplicate tests introduced by cherry-picking conflicts
2015-02-05 00:23:51 +00:00
Marco Pivetta
c6e7a81849
#1169 DDC-3343 - removing duplicate test method
2015-02-05 00:21:28 +00:00
Marco Pivetta
4884183b95
#1169 DDC-3343 - fixing test case typos (referencing wrong/inexisting properties, inexisting owning side assigned
2015-02-05 00:16:58 +00:00
Marco Pivetta
fac410b213
#1169 DDC-3343 - aligning test suite logic to the 2.5 branch (failing tests)
2015-02-05 00:16:07 +00:00
Marco Pivetta
cbe5575f38
#1169 DDC-3343 - adding tests for orphan-removal + extra-lazy + one-to-many element removal behavior
2015-02-05 00:15:18 +00:00
Marco Pivetta
94c0e46c96
#1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified.
2015-02-05 00:14:19 +00:00
Marco Pivetta
af59ea962f
#1169 DDC-3343 - updating test expectations - one-to-many changes should be no-op unless orphan removal is specified.
2015-02-05 00:14:11 +00:00
Ryan Weaver
9d7256aace
Small code change thanks to the comments and adding a test
2015-02-04 23:37:03 +00:00
Marco Pivetta
51250e987e
#1169 DDC-3343 - moved tests to correct test class
2015-01-24 12:51:19 +01:00
Marco Pivetta
c4b59b4eb0
#1169 DDC-3343 - adapting patch to 2.4 branch
2015-01-24 12:50:10 +01:00
Marco Pivetta
daca81861c
#1169 DDC-3343 - additional test cases: removing proxies from an extra-lazy collection still updates the owning side values
2015-01-24 12:38:51 +01:00
Marco Pivetta
52fbe35bc7
#1169 DDC-3343 - correcting query count assertions on extra-lazy specific tests (some DELETE operations became UPDATE operations)
...
Conflicts:
lib/Doctrine/ORM/Persisters/Collection/OneToManyPersister.php
tests/Doctrine/Tests/ORM/Functional/ExtraLazyCollectionTest.php
2015-01-24 12:38:44 +01:00
Marco Pivetta
50ac97e72d
#1169 DDC-3343 - removing duplicate test
2015-01-24 12:37:41 +01:00
Marco Pivetta
cfed92a5cf
#1169 DDC-3343 - integrating tests into the existing test suite
...
Conflicts:
tests/Doctrine/Tests/ORM/Functional/ValueConversionType/OneToManyExtraLazyTest.php
2015-01-24 12:37:21 +01:00
Marco Pivetta
d69fd91454
#1169 DDC-3343 - importing used classe
2015-01-24 12:36:18 +01:00
Marco Pivetta
41258deed7
#1169 DDC-3343 - optimized imports
2015-01-24 12:36:10 +01:00
Marco Pivetta
193ec51607
#1169 DDC-3343 - refactoring test to use pre-existing test models
2015-01-24 12:36:01 +01:00
Marco Pivetta
7292920b15
#1169 DDC-3343 - refactoring test to use pre-existing test models
2015-01-24 12:35:50 +01:00
Marco Pivetta
24ebfb69cb
#1169 DDC-3343 - minor refactoring: constant over string reference
2015-01-24 12:34:10 +01:00
Andrea Sprega
a88550a70c
[DDC-3343] Failing test case (updated)
2015-01-24 12:32:30 +01:00
Andrea Sprega
ee246af7e3
[DDC-3343] Failing test case
2015-01-24 12:32:17 +01:00
Tomas Votruba
5d637af056
travis: run coverage just once
2015-01-22 13:46:29 +01:00
Marco Pivetta
56c5cb41fc
DDC-3518 - Schema creation statement is not quoted
2015-01-18 17:39:10 +01:00
Guilherme Blanco
e0077b290b
ORM side fixes.
2015-01-18 17:09:29 +01:00
Marco Pivetta
91e5c0d443
Merge pull request #1231 from aivus/2.4-DDC-1590-backport
...
Backport 'Merge pull request #1098 from encoder32/DDC-1590' to 2.4 branch
2015-01-17 22:19:29 +01:00
Marco Pivetta
05342b0b94
Merge pull request #1254 from vitaliyberdylo/2.4
...
Fix applying ON/WITH conditions to first join in Class Table Inheritance
2015-01-17 21:56:32 +01:00
lukasmaz
ddf3125afe
Test case for "class" keyword
...
Test case for http://www.doctrine-project.org/jira/browse/DDC-3493
2015-01-15 04:19:54 +01:00
Strate
8d33ccced1
Fix applying ON/WITH conditions to first join in Class Table Inheritance
...
Now we build nested joins for CTI when using ON/WITH clause.
2015-01-14 19:55:54 +02:00
Carnage
4e4637de2e
Added test to demonstrate issue
2015-01-13 02:35:44 +01:00
Marco Pivetta
4c8abd5d83
Backport 'Merge pull request #1098 from encoder32/DDC-1590' to 2.4 branch
2014-12-26 15:56:01 +02:00
Marco Pivetta
a5a7c879fc
#1202 - simplified test and test asset
2014-12-08 01:38:38 +01:00
Gareth Evans
5670912d0d
Added test that passes following previous commit
2014-12-08 01:38:31 +01:00
Marco Pivetta
4d846c1992
DDC-3434 - removing explicit failure: 2.4 uses different column alias naming strategy logic
2014-12-05 18:11:44 +01:00
Marco Pivetta
f31f088f0b
DDC-3434 - adding test case for HIDDEN
modifier fields in ORDER BY
sequences: should be preserved in any case
2014-12-05 18:07:35 +01:00
Marco Pivetta
51da937bbc
DDC-3434 - removed unneeded escaping sequences
2014-12-05 18:07:30 +01:00
Marco Pivetta
801e7f0ef7
DDC-3336 - adding $types
parameter to ConnectionMock#fetchColumn()
for DBAL 2.5 compatibility
2014-12-05 17:30:16 +01:00
Marco Pivetta
f0e6408005
DDC-3336 - removing explicit failure: 2.4 uses different column alias naming strategy logic
2014-12-05 17:29:18 +01:00
Marco Pivetta
34fad084a7
DDC-3336 - adding missing type-hint docblock
2014-12-05 16:45:50 +01:00
Marco Pivetta
bdc54d481c
DDC-3336 - renamed test method for clarity
2014-12-05 16:45:44 +01:00
Marco Pivetta
60462919f2
DDC-3336 - adding failing test case: scalar expressions in the ORDER BY
clause crash the LimitSubqueryOutputWalker
2014-12-05 16:45:39 +01:00
Marco Pivetta
5a8a017a66
DDC-3336 - importing platform classes
2014-12-05 16:45:31 +01:00
Marco Pivetta
78770f9da8
#1188 - assertCount
instead of assertEquals
2014-11-28 12:16:05 +01:00
Marco Pivetta
2f57c4fef9
#1188 - minor CS fixes (avoiding DQL one-liner)
2014-11-28 12:15:53 +01:00
Marco Pivetta
684ae859ce
#1188 - accessing Doctrine\ORM\Tools\Pagination\Paginator#getCountQuery()
via reflection for test purposes
2014-11-28 12:15:46 +01:00
Merixstudio
7c02af8896
Filtering by auto-increnement field causes test error.
...
Executing the same test many times causes error because AI fields.
2014-11-28 12:15:07 +01:00
Merixstudio
61c18ce046
Testing SQLs in functional test is not necessary
2014-11-28 12:14:49 +01:00
Merixstudio
7f5620a41c
Test parameter removing parameters passed to select part of query.
2014-11-28 12:14:40 +01:00
Marco Pivetta
cfdef3bf19
Merge pull request #925 from deeky666/DDC-2310-2.4
...
[DDC-2310] [DDC-2675] [2.4] Fix SQL generation on table lock hint capable platforms
2014-11-12 00:31:13 +01:00