1
0
Fork 0
mirror of synced 2025-03-30 03:30:13 +03:00
doctrine2/tests/Doctrine/Tests/Models
Marco Pivetta 5d12593e70 Rewrote ManyToOne SLC tests to not rely on multi-level auto-generated identifiers
Background:

Test relied on an `A->B->C` association:

 * `A#id` being `B`
 * `B#id` being `C`
 * `C#id` being an auto-generated identifier (post-insert)

This cannot work, because it breaks the UnitOfWork's identity map.
Specifically, no entries for `A` and `B` can exist in the identity map until `C` entries
are persisted (post-insert).

That means that the identifier generator for `A` and `B` should not be an "assigned"
generator, but should instead be a post-insert generator waiting for other entities
to be persisted.

We cannot fix this in ORM 2.x, but we'll need to invent something for 3.x in order to
fix that (directed graph, or caching the order of operations in the metadata graph).
2016-07-07 21:29:10 +02:00
..
Cache Rewrote ManyToOne SLC tests to not rely on multi-level auto-generated identifiers 2016-07-07 21:29:10 +02:00
CMS cascade all operations on cmstags 2016-02-14 17:43:58 -07:00
Company implements a entity listener resolver 2013-01-29 12:14:52 -02:00
CompositeKeyInheritance #1130 DDC-3300 - fixed inheritance maps where inheritance members were missing 2015-01-22 09:44:39 +01:00
CustomType #1336 DDC-3622 - removing implicit cast from string to CustomIdObject in entity API (confusing) 2015-03-17 21:29:30 +00:00
DDC117 cascade remove persist on links 2013-04-29 11:03:55 +02:00
DDC753 Optimize imports. Remove full qualified class names 2016-05-11 01:55:12 +07:00
DDC869 General fixes across CS, type resolving, test fixes, etc 2015-11-07 03:55:05 +00:00
DDC889 mention parent classes for identifier required exception. 2012-03-25 13:34:52 -03:00
DDC964 Optimize imports. Remove full qualified class names 2016-05-11 01:55:12 +07:00
DDC1476 Updated syntax for ``integer` and `boolean`` types 2015-07-14 15:30:13 -03:00
DDC1590 Updated syntax for ``integer` and `boolean`` types 2015-07-14 15:30:13 -03:00
DDC1872 [DDC-1872] skip 5.4 versions for php 5.3 uncompatible tests 2012-07-29 22:55:26 -05:00
DDC2372 Entity generator - trait in parent class 2013-08-20 12:15:17 +02:00
DDC2504 Remove full qualified class names in tests 2016-05-11 03:00:44 +07:00
DDC2825 #881 DDC-2825 - renaming table/schema name for clarity and to avoid collisions 2015-01-14 19:16:42 +01:00
DDC3231 Unit Tests && simple fixes 2014-09-07 18:26:09 +03:00
DDC3293 Remove full qualified class names in tests 2016-05-11 03:00:44 +07:00
DDC3346 #1277 DDC-3346 DDC-3531 - refactoring test assets for readability 2015-01-24 14:39:46 +01:00
DDC3579 Optimize imports. Remove full qualified class names 2016-05-11 01:55:12 +07:00
DDC3597 unittest DDC3597: fix for PHP 5.4 2015-03-04 11:55:08 +01:00
DDC3699 DDC-3699 - #1387 - simpifying tests, clarifying on test method names 2015-07-15 21:46:23 +01:00
DDC3711 [DDC-3711] add Test that check if the association key are composite 2015-10-31 17:19:39 +01:00
DDC3899 Added test 2015-09-14 18:35:49 +02:00
DDC4006 inherit ID generator strategy mapping from embeddables 2015-11-19 16:10:48 +01:00
DirectoryTree removed useless line breaks 2015-09-03 17:55:14 +09:00
ECommerce [DDC-2624] Fix bug when persistent collection is cloned and used in a new entity. 2014-02-09 14:27:42 +01:00
Forum Remove all trailing whitespaces 2011-12-19 22:56:19 +01:00
Generic General fixes across CS, type resolving, test fixes, etc 2015-11-07 03:55:05 +00:00
GeoNames Tested composite primary key support 2015-02-16 00:53:46 +00:00
Global General fixes across CS, type resolving, test fixes, etc 2015-11-07 03:55:05 +00:00
Hydration Hydration of fetch-joined results fails when an entity has a default value of array for the collection property 2015-04-02 23:43:16 +01:00
JoinedInheritanceType [DDC-1542] - Inheritance: Added default discriminator map (only annotations yet) 2012-05-04 20:36:24 +02:00
Legacy Optimize imports. Remove full qualified class names 2016-05-11 01:55:12 +07:00
MixedToOneIdentity #1176 DDC-3378 - moved test asset entities to proper models directory 2015-01-22 12:07:42 +01:00
Navigation [DDC-1939] Add test for persistent collection delete with composite key 2012-07-29 09:27:08 +02:00
NonPublicSchemaJoins #1316 - removing unused API from stub class 2015-03-17 23:14:29 +00:00
NullDefault #1202 - simplified test and test asset 2014-12-08 01:34:30 +01:00
OneToOneSingleTableInheritance #1265 DDC-3517 - moved test assets to separate models dir, namespaced table names 2015-01-18 18:25:46 +01:00
Pagination Adding failing test case for PaginationTest 2015-03-31 21:39:21 +01:00
Quote Renamed coll to collection and some small updates to tests. 2015-01-15 03:14:48 +00:00
Reflection #1272 DDC-2704 - test assets for the property getter utility tests 2015-01-24 14:30:07 +01:00
Routing [DDC-193] Fixed. 2010-04-10 00:00:36 +02:00
StockExchange Optimize imports. Remove full qualified class names 2016-05-11 01:55:12 +07:00
Taxi DDC-3068 DDC-3069 EntityManager::find accept array of object as id. 2014-04-18 02:03:47 +00:00
Tweet #1169 DDC-3343 - adding tests for orphan-removal + extra-lazy + one-to-many element removal behavior 2015-01-27 07:42:48 +01:00
ValueConversionType Revert "#1178 - simplified ValueConversionType tests by using a single model-set for the entire subset of tests (faster as well)" 2015-01-17 08:01:31 +01:00
ValueObjects Update XML schema to reflect addition of embeddables 2013-12-07 16:38:32 +01:00
VersionedManyToOne #1573 - correcting test asset namespace, removing unused properties and bi-directional association 2015-12-11 20:14:53 +01:00
VersionedOneToOne - Fixed the basic entity persister so that versioned OneToOne entities can be created 2014-10-01 14:01:44 +01:00