/** * Updates a given object in the storage * * @param \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object The object to be updated * @param array $row Row to be stored * @return bool */ protected function updateObject(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, array $row) { $objectHash = spl_object_hash($object); if (!$this->pendingInsertObjects[$objectHash]) { $this->signalSlotDispatcher->dispatch('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Backend', 'beforeUpdateObjectHijax', array('object' => $object, 'row' => &$row)); } $result = parent::updateObject($object, $row); if ($result === TRUE) { if (!$this->pendingInsertObjects[$objectHash]) { $this->signalSlotDispatcher->dispatch('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Backend', 'afterUpdateObjectHijax', array('object' => $object, 'row' => &$row)); $this->_changedObjects->attach($object); } else { unset($this->pendingInsertObjects[$objectHash]); $this->signalSlotDispatcher->dispatch('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Backend', 'afterInsertObjectHijax', array('object' => $object, 'row' => &$row)); $this->_addedObjects->attach($object); } } return $result; }