Skip to content

Prevent update when nothing change on Entities with class inheritance #42

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sh41
Copy link

@sh41 sh41 commented Aug 2, 2020

Related to #25, #28 & #35.

The implementation didn't handle Entities using class inheritance correctly as the Unit Of Work Identity Map entity name will refer to the root class of an Entity which uses inheritance but the cached decryptions array did not use the same reference.

This change adds tests for the scenario and provides a fix.

It also re-enables tests that were accidentally disabled by renaming the functional test cases from *Test.php to *TestCase.php in #36 which meant they were not picked up by the filter in phpunit.xml.dist.

sh41 added 3 commits August 2, 2020 15:10
…Previously we used a mixture of the Identity Map class name, which could reference the root class as well as the actual class and result of get_class(). Changed to only use the existing $realClass variable.
@r3hp1c
Copy link

r3hp1c commented Jul 17, 2023

Zombaya pushed a commit to integr8rs/DoctrineEncryptBundle that referenced this pull request Dec 15, 2024
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.

2 participants