/** * Removes an account * * @param object $object The account to remove * @return void * @throws IllegalObjectTypeException */ public function remove($object) { parent::remove($object); /** @var Account $object */ $tag = 'TYPO3-Flow-Security-Account-' . md5($object->getAccountIdentifier()); $this->sessionManager->destroySessionsByTag($tag, sprintf('The account %s (%s) was deleted', $object->getAccountIdentifier(), $object->getAuthenticationProviderName())); }
public function findAll() { $result = parent::findAll(); foreach ($result as $instance) { $instance->setContent($instance->getContent() . ' - touched by SubSubEntityRepository'); } return $result; }
/** * Removes a PersistentResource object from this repository * * @param object $object * @return void */ public function remove($object) { // Intercept a second call for the same PersistentResource object because it might cause an endless loop caused by // the ResourceManager's deleteResource() method which also calls this remove() function: if (!$this->removedResources->contains($object)) { $this->removedResources->attach($object); parent::remove($object); } }
/** * Removes an object to the persistence. * * This repository keeps track of added and removed nodes (additionally to the * other Unit of Work) in order to find in-memory nodes. * * @param object $object The object to remove * @return void * @api */ public function remove($object) { if ($object instanceof NodeInterface) { $object = $object->getNodeData(); } if ($this->addedNodes->contains($object)) { $this->addedNodes->detach($object); } if (!$this->removedNodes->contains($object)) { $this->removedNodes->attach($object); } parent::remove($object); }
/** * @param AssetInterface $object */ public function update($object) { parent::update($object); $this->assetService->emitAssetUpdated($object); }