mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3979: [GH-1544] DefaultEntityHydrator: Undefined index: targetToSourceKeyColumns #4855
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?
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 messageUndefined 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.
@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 assigned:
https://github.com/doctrine/doctrine2/pull/1544
@doctrinebot commented on GitHub (Nov 13, 2015):
Issue was closed with resolution "Fixed"