lib/Doctrine/ORM/Tools/SchemaTool.php
public function getDropDatabaseSQL()
    {
        $sm     = $this->em->getConnection()->getSchemaManager();
        $schema = $sm->createSchema();

        $visitor = new DropSchemaSqlCollector($this->platform);
        $schema->visit($visitor);

        return $visitor->getQueries();
    }
public function getDropDatabaseSQL()
    {
        $sm     = $this->em->getConnection()->getSchemaManager();
        $schema = $sm->createSchema();

        $visitor = new DropSchemaSqlCollector($this->platform);
        $schema->visit($visitor);

        return $visitor->getQueries();
    }
public function getDropDatabaseSQL ( ) { $ sm = $ this -> em -> getConnection ( ) -> getSchemaManager ( ) ; $ schema = $ sm -> createSchema ( ) ; $ visitor = new DropSchemaSqlCollector ( $ this -> platform ) ; $ schema -> visit ( $ visitor ) ; return $ visitor -> getQueries ( ) ; }
Gets the SQL needed to drop the database schema for the connections database.

@return string[]
Gets the SQL needed to drop the database schema for the connections database .