Skip to content

Commit

Permalink
Clear the wrapper cache after the flush event is done
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jacobse committed May 1, 2014
1 parent 47ed3e4 commit 1e6ca3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Gedmo/Sluggable/SluggableListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -224,6 +225,8 @@ public function onFlush(EventArgs $args)
}

$this->manageFiltersAfterGeneration($om);

AbstractWrapper::clear();
}

/**
Expand Down

0 comments on commit 1e6ca3f

Please sign in to comment.