DDC-3979: [GH-1544] DefaultEntityHydrator: Undefined index: targetToSourceKeyColumns #4855

Closed
opened 2026-01-22 14:50:33 +01:00 by admin · 3 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 6, 2015).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user @doctrinebot:

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

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

Message:

I'm experiencing an issue while configuring the SecondLevelCache. I still have to figure out correctly how it works (the docs are not very verbose on the topic), so actually I have messed up with many parameters.

I found a bug while caching entities which have non-owning OneToOne relationship: in these case, if the relation is not marked as @Cacheable, i got the message Undefined index: targetToSourceKeyColumns. This issue never happens on the owning side.

I was able to track down the issue, and the commit here just expose the issue in some existing tests.

I'm sorry I cannot give you a proper patch, but I don't know if the problem reside in the Hydrator logic, in the association class (since targetToSourceKeyColumns and sourceToTargetKeyColumns are unset) or in the configuration validation.

Originally created by @doctrinebot on GitHub (Nov 6, 2015). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of giosh94mhz: Url: https://github.com/doctrine/doctrine2/pull/1544 Message: I'm experiencing an issue while configuring the SecondLevelCache. I still have to figure out correctly how it works (the docs are not very verbose on the topic), so actually I have messed up with many parameters. I found a bug while caching entities which have non-owning OneToOne relationship: in these case, if the relation is not marked as `@Cache`able, i got the message `Undefined index: targetToSourceKeyColumns`. This issue never happens on the owning side. I was able to track down the issue, and the commit here just expose the issue in some existing tests. I'm sorry I cannot give you a proper patch, but I don't know if the problem reside in the Hydrator logic, in the association class (since targetToSourceKeyColumns and sourceToTargetKeyColumns are unset) or in the configuration validation.
admin added the Bug label 2026-01-22 14:50:33 +01:00
admin closed this issue 2026-01-22 14:50:33 +01:00
Author
Owner

@doctrinebot commented on GitHub (Nov 13, 2015):

Comment created by @doctrinebot:

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

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

@doctrinebot commented on GitHub (Nov 13, 2015):

Comment created by @doctrinebot:

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

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

@doctrinebot commented on GitHub (Nov 13, 2015):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Nov 13, 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#4855