Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
doctrinebot opened this issue Nov 6, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@doctrinebot
Copy link

Jira issue originally created by user @doctrinebot:

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

Url: #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.

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1544] was closed:
#1544

@doctrinebot
Copy link
Author

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1544] was assigned:
#1544

@doctrinebot
Copy link
Author

Issue was closed with resolution "Fixed"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants