1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00
doctrine2/tests/Doctrine/Tests/Models/Cache
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
..
Action.php Rewrote ManyToOne SLC tests to not rely on multi-level auto-generated identifiers 2016-07-07 21:29:10 +02:00
Address.php Fix one to one inverse side cached entity association key generation 2015-11-13 15:58:52 +00:00
Attraction.php Test to verify the bug and the fix 2015-11-19 12:02:51 -03:00
AttractionContactInfo.php Second level cache 2013-12-16 11:05:04 -05:00
AttractionInfo.php Second level cache 2013-12-16 11:05:04 -05:00
AttractionLocationInfo.php Second level cache 2013-12-16 11:05:04 -05:00
Bar.php Second level cache 2013-12-16 11:05:04 -05:00
Beach.php Fix cache misses using one-to-one inverse side 2013-12-20 15:37:07 -05:00
City.php Second level cache 2013-12-16 11:05:04 -05:00
Client.php Removed unnecessary API from test cases 2015-02-24 08:53:22 +01:00
ComplexAction.php Rewrote ManyToOne SLC tests to not rely on multi-level auto-generated identifiers 2016-07-07 21:29:10 +02:00
Country.php Second level cache 2013-12-16 11:05:04 -05:00
Flight.php Second level cache 2013-12-16 11:05:04 -05:00
Login.php Removed unnecessary API from test cases 2015-02-24 08:53:22 +01:00
Person.php Fix one to one inverse side cached entity association key generation 2015-11-13 15:58:52 +00:00
Restaurant.php Second level cache 2013-12-16 11:05:04 -05:00
State.php Fixed support for inverse side second level cache 2015-11-12 05:00:08 +00:00
Token.php Rewrote ManyToOne SLC tests to not rely on multi-level auto-generated identifiers 2016-07-07 21:29:10 +02:00
Travel.php Second level cache 2013-12-16 11:05:04 -05:00
Traveler.php Fixed support for inverse side second level cache 2015-11-12 05:00:08 +00:00
TravelerProfile.php Fix cache misses using one-to-one inverse side 2013-12-20 15:37:07 -05:00
TravelerProfileInfo.php Fix cache misses using one-to-one inverse side 2013-12-20 15:37:07 -05:00