private function createTables() { $this->resetNatTimer(); $em = $this->getEntityManager(); $metadatas = $em->getMetadataFactory()->getAllMetadata(); $schemaTool = new SchemaTool($em); $schemaTool->createSchema($metadatas); return $this; }