private function createDatabase()
    {
        $em       = $this->entityManager;
        $metadata = $em->getMetadataFactory()->getAllMetadata();

        $schemaTool = new SchemaTool($em);
        $schemaTool->createSchema($metadata);
    }
private function createDatabase()
    {
        $em       = $this->entityManager;
        $metadata = $em->getMetadataFactory()->getAllMetadata();

        $schemaTool = new SchemaTool($em);
        $schemaTool->createSchema($metadata);
    }
private function createDatabase ( ) { $ em = $ this -> entityManager ; $ metadata = $ em -> getMetadataFactory ( ) -> getAllMetadata ( ) ; $ schemaTool = new SchemaTool ( $ em ) ; $ schemaTool -> createSchema ( $ metadata ) ; }
Create database using doctrine schema tool
Create database using doctrine schema tool