public function remove(GenericEvent $event) { $tool = new \Doctrine\ORM\Tools\SchemaTool($this->em); $tool->dropSchema($this->getClasses(), true); }