-
Couldn't load subscription status.
- Fork 41
Open
Labels
Description
when you have a model with Custom Id Property and not standard-name "persistence_object_identifier", the aspect on the delete method trys to find the Id of the object which was removed. this fails because the object is already deleted so it returns NULL and the call to elastic-search is DELETE/[index]/[type]/
I could track the issue down to "ObjectIndexer.removeObject"
$id = $this->persistenceManager->getIdentifierByObject($object);
Here the Persistence Manager returns NULL
If I change the Aspect to run before, everything works fine:
- @flow\Before("setting(TYPO3.TYPO3CR.Search.realtimeIndexing.enabled) && within(TYPO3\Flow\Persistence\PersistenceManagerInterface) && method(public .+->(remove)())")
So we have different possible solutions for this:
- Change the Aspect
- Change how the PersistenceManager->getIdentifierByObject works
- do something else ;-)
Can somebody support me for this case please?