lib/Doctrine/DBAL/Schema/Schema.php
public function toSql(AbstractPlatform $platform)
    {
        $sqlCollector = new CreateSchemaSqlCollector($platform);
        $this->visit($sqlCollector);

        return $sqlCollector->getQueries();
    }
public function toSql(AbstractPlatform $platform)
    {
        $sqlCollector = new CreateSchemaSqlCollector($platform);
        $this->visit($sqlCollector);

        return $sqlCollector->getQueries();
    }
public function toSql ( AbstractPlatform $ platform ) { $ sqlCollector = new CreateSchemaSqlCollector ( $ platform ) ; $ this -> visit ( $ sqlCollector ) ; return $ sqlCollector -> getQueries ( ) ; }
Returns an array of necessary SQL queries to create the schema on the given platform.

@return string[]
Returns an array of necessary SQL queries to create the schema on the given platform .