/** * 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(); }
/** * Unregister an object * * @param object $object * @return void * @deprecated since 6.1, will be removed two versions later, use the persistence session instead */ public function unregisterObject($object) { $this->persistenceSession->unregisterObject($object); }