Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Mark the last key not dirty?! #4999
In Issue #4677 you have corrected the saving of objects but not the loading.
Nice try...but this didn't work ;-)
In the current version (master and 6.2.1 - https://github.com/pimcore/pimcore/blob/master/models/DataObject/Objectbrick/Dao.php) you can see the following code block (for convenience reason I've extracted it here):
And because of that block our "last" object brick relation to our products have been deleted and not inserted again.
Please read the code, get an idea of what has gone wrong and take one of my two fixes.
Also not able to reproduce it. However, you may have a valid point - which IMHO does not explain what you are describing here. BTW, I think we should replace it with resetDirtyMap because after loading the brick should be clean anyway.
Please don't forget to sign the CLA.