DDC-3564: [GH-1301] Add failing test with ToOne SL2 association #4382

Closed
opened 2026-01-22 14:40:41 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Feb 11, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of bakura10:

Url: https://github.com/doctrine/doctrine2/pull/1301

Message:

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.

Originally created by @doctrinebot on GitHub (Feb 11, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of bakura10: Url: https://github.com/doctrine/doctrine2/pull/1301 Message: Hi, This failing test is based on @FabioBatSilva tests here (https://github.com/FabioBatSilva/doctrine2/blob/4f7e71963f5197235fce9f87a56b02bbbba46026/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.
admin added the Bug label 2026-01-22 14:40:41 +01:00
admin closed this issue 2026-01-22 14:40:42 +01:00
Author
Owner

@doctrinebot commented on GitHub (Feb 11, 2015):

@doctrinebot commented on GitHub (Feb 11, 2015): - depends on [DDC-3566: [GH-1302] Store column values of not cache-able associations](http://www.doctrine-project.org/jira/browse/DDC-3566)
Author
Owner

@doctrinebot commented on GitHub (Feb 16, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1301] was labeled:
https://github.com/doctrine/doctrine2/pull/1301

@doctrinebot commented on GitHub (Feb 16, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1301] was labeled: https://github.com/doctrine/doctrine2/pull/1301
Author
Owner

@doctrinebot commented on GitHub (Feb 16, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1301] was assigned:
https://github.com/doctrine/doctrine2/pull/1301

@doctrinebot commented on GitHub (Feb 16, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1301] was assigned: https://github.com/doctrine/doctrine2/pull/1301
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

Comment created by @ocramius:

Handled in DDC-3566

@doctrinebot commented on GitHub (Mar 17, 2015): Comment created by @ocramius: Handled in [DDC-3566](http://www.doctrine-project.org/jira/browse/DDC-3566)
Author
Owner

@doctrinebot commented on GitHub (Mar 17, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Mar 17, 2015): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4382