/** * {@inheritdoc} */ protected function flush(LifecycleEventArgs $args) { $identifier = $this->collectionIdentifiers->getIdentifier($args->getDocument()); if ($identifier === false) { return; } $parameters = array(ClassUtils::getClass($args->getDocument()) => $identifier); foreach ($this->caches as $cache) { $cache->flush($parameters); } }