mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1301] Add failing test with ToOne SL2 association #9357
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/1301
State: closed
Merged: No
Hi,
This failing test is based on @FabioBatSilva tests here (
4f7e71963f/tests/Doctrine/Tests/ORM/Functional/SecondLevelCacheOneToOneTest.php).I've changed the test so that on Token association, there is no @Cache annotation.
The default behaviour would be to Doctrine set a proxy on non-cached association. Instead, it basically creates a "partial" object where any associations without the @Cache is set to null. I'm pretty sure it works the same ManyToOne association too.