I want to check in my repository during an update call whether a certain property of the object has changed.
So, I tried to use:
$doneBefore = $this->session->getCleanStateOfProperty($object, "done");
$doneNew = $object->isDone();
However, Neos\Flow\Persistence\Generic\Session seems to be deprecated since 6.0
What would be the alternative way in Neo 6.0.6 to query the property change?
Thanks for your help!
Please excuse me if I have to warm up this topic again. I have found a workaround for this one case, but in the next step I want to build a very detailed rights management. A user is allowed to change the property “A” of an object, but for property “B” of the same object he might not have the corresponding write permissions.
To make this as dynamic as possible, I need to compare the old (persistent) and the new object modified by the user and compare it with the ACL.
Do you have any ideas on how I can access the old state of the object?
Thanks in advance for your help!