diff --git a/Listener/WikiListener.php b/Listener/WikiListener.php index 8fdfa01..d3b9fcf 100755 --- a/Listener/WikiListener.php +++ b/Listener/WikiListener.php @@ -72,7 +72,7 @@ public function onOpen(OpenResourceEvent $event) public function onDelete(DeleteResourceEvent $event) { - $em = $this->container->get('doctrine.orm.entity_manager'); + $em = $this->container->get('claroline.persistence.object_manager'); $em->remove($event->getResource()); $em->flush(); $event->stopPropagation(); @@ -88,4 +88,4 @@ public function onCopy(CopyResourceEvent $event) $event->setCopy($newWiki); $event->stopPropagation(); } -} \ No newline at end of file +}