/**
  * Deletes an object
  *
  * @param \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object The object to be removed from the storage
  * @param boolean $markAsDeleted Wether to just flag the row deleted (default) or really delete it
  * @return void
  */
 protected function removeEntity(\TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface $object, $markAsDeleted = TRUE)
 {
     $this->signalSlotDispatcher->dispatch('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Backend', 'beforeRemoveObjectHijax', array('object' => $object));
     // TODO: check if object is not already deleted
     parent::removeEntity($object, $markAsDeleted);
     // TODO: check if object is removed indeed
     $this->signalSlotDispatcher->dispatch('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Backend', 'afterRemoveObjectHijax', array('object' => $object));
     $this->_removedObjects->attach($object);
 }