/** @ORM\PostUpdate */ public function PostUpdate(DevisPrices $price, LifecycleEventArgs $event) { $entity = $event->getEntity(); $entityManager = $event->getEntityManager(); $cacheDriver = $entityManager->getConfiguration()->getResultCacheImpl(); $cacheDriver->delete('getPricesByDuration_' . $price->getDevis()->getId()); $cacheDriver->delete('getPricespublic_' . $price->getDevis()->getId()); }