Skip to content

Commit

Permalink
Merge pull request #1057 from captolia/master
Browse files Browse the repository at this point in the history
Clear the wrapper cache after the flush event is done
  • Loading branch information
l3pp4rd committed May 3, 2014
2 parents 842b6a7 + 1e6ca3f commit 8e84ac1
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 8e84ac1

Please sign in to comment.