private function createSchema(EntityManager $em) { $tool = new SchemaTool($em); $tool->createSchema($em->getMetadataFactory()->getAllMetadata()); }