I'm using TYPO3\CMS\Core\Cache\Frontend\VariableFrontend in TYPO3 CMS v12 as cache for custom created database records. While caching these records they get serialized() and afterwards when fetching from cache unserialized().
Some record with an IRRE property of type ObjectStorage<Category> (sys_category) must contain an invalid value because this error is thrown only for a single record:
Cannot assign null to property TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::$_cleanProperties of type array
at unserialize()
in /var/www/html/vendor/typo3/cms-core/Classes/Cache/Frontend/VariableFrontend.php line 85
The relations in the database are looking good and when removing the property from the PHP model everything works fine.
Debugging serialization/unserialization of records is very long-winded even with Xdebug.
How can I debug setting the $_cleanProperties in TYPO3 CMS when unserialize PHP objects?
Thanks in advance!
Limit possible records and properties to only identify causing record and property.
I expect to set records into cache and fetching them usable again.