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
Set Data.php to support dirty detection on simple data fields #16293
base: 11.x
Are you sure you want to change the base?
Conversation
Review Checklist
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
To me it seems quite safe to change that. pimcore/models/DataObject/Concrete/Dao.php Line 190 in 130fd27
I'll create a PR for that, as I'd classify this as a bug anyway 😉 |
Just one more thing ... if we set the default to true, we might remove the existing method overrides for Just for reference: this is the PR about the topic before: #16598 |
Additionally it seems that also the code generation for setters/getters in pimcore/models/DataObject/ClassDefinition/Data.php Lines 559 to 571 in aac116d
|
This PR enables the dirty detection for simple data fields in the DataObject. Use cases would be for any custom event listener or processing on a DataObject Pre-Save event might want to know which fields have been modified to reduce duplicate work.
I however am not positive of the downstream affects this would have or why this was disabled by default. Would this be something that needs other fixes to make sense, or could be controlled with configuration instead?
Changes in this pull request
Resolves #5689
Additional info