From 1e6ca3f942515e099aab938c4b41f620d1b45d60 Mon Sep 17 00:00:00 2001 From: Paul Jacobse Date: Thu, 1 May 2014 12:15:28 +0200 Subject: [PATCH] Clear the wrapper cache after the flush event is done --- lib/Gedmo/Sluggable/SluggableListener.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Gedmo/Sluggable/SluggableListener.php b/lib/Gedmo/Sluggable/SluggableListener.php index f496f28f9a..002f223387 100644 --- a/lib/Gedmo/Sluggable/SluggableListener.php +++ b/lib/Gedmo/Sluggable/SluggableListener.php @@ -6,6 +6,7 @@ use Gedmo\Mapping\MappedEventSubscriber; use Gedmo\Sluggable\Mapping\Event\SluggableAdapter; use Doctrine\Common\Persistence\ObjectManager; +use Gedmo\Tool\Wrapper\AbstractWrapper; /** * The SluggableListener handles the generation of slugs @@ -224,6 +225,8 @@ public function onFlush(EventArgs $args) } $this->manageFiltersAfterGeneration($om); + + AbstractWrapper::clear(); } /**