lib/Doctrine/ORM/Tools/SchemaTool.php
public function getCreateSchemaSql(array $classes)
    {
        $schema = $this->getSchemaFromMetadata($classes);

        return $schema->toSql($this->platform);
    }
public function getCreateSchemaSql(array $classes)
    {
        $schema = $this->getSchemaFromMetadata($classes);

        return $schema->toSql($this->platform);
    }
public function getCreateSchemaSql ( array $ classes ) { $ schema = $ this -> getSchemaFromMetadata ( $ classes ) ; return $ schema -> toSql ( $ this -> platform ) ; }
Gets the list of DDL statements that are required to create the database schema for
the given list of ClassMetadata instances.

@param ClassMetadata[] $classes

@return string[] The SQL statements needed to create the schema for the classes.
Gets the list of DDL statements that are required to create the database schema for the given list of ClassMetadata instances .