TYPO3 Extbase: How do I access the “modified” flag of my object property?

I often use Extbase DebugUtility ( Tx_Extbase_Utility_Debugger::var_dump($object) ). It displays additional data for each property, especially the “changed” flag - see screenshot.

How can I access this "meta property" from my controller (updateAction)? I tried $object->getProperty->isModified and other combinations, but to no avail.

enter image description here

+4
source share
1 answer

There is a method $yourObject->_isDirty("propertyName") that returns true if it has been changed (see the documentation ).

If your property is the collection itself, just use $yourObject->getWhatevers()->_isDirty() (see documentation ).

+2
source

Source: https://habr.com/ru/post/1492100/


All Articles