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

Collection cache key is built differently on read than on write #1552

Merged

Conversation

guiwoda
Copy link
Contributor

@guiwoda guiwoda commented Nov 11, 2015

This one's a quick bugfix that would be better if we could refactor key building logic inside the \Doctrine\ORM\Cache implementations, but that would be a (albeit small) BC break in its current API.

I intentionally named the refactored protected method exactly as its named in \Doctrine\ORM\DefaultCache.

Testing this proved harder than what it's worth. I'm actually patching this in userland, and you'll find the bug and correction pretty obvious if you look at both the modified class and \Doctrine\ORM\DefaultCache, so I hope we can merge this one and maybe work on a full test suite for all of the Persister strategies.

Cheers!

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

http://www.doctrine-project.org/jira/browse/DDC-3993

We use Jira to track the state of pull requests and the versions they got
included in.

@guilhermeblanco
Copy link
Member

I saw that while inspecting another issue. Will merge as soon as unit tests pass.
We do have a SLC test suite, but I think it's not covering all scenarios (being really hard to debug all scenarios over this tbh)

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

Successfully merging this pull request may close these issues.

None yet

3 participants