/** * Iterate over deleted aggregate root objects and process them * * @return void */ protected function processDeletedObjects() { foreach ($this->deletedEntities as $entity) { if ($this->session->hasObject($entity)) { $this->removeEntity($entity); $this->session->unregisterReconstitutedEntity($entity); $this->session->unregisterObject($entity); } } $this->deletedEntities = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); }