lib/Doctrine/ORM/Tools/SchemaTool.php
public function createSchema(array $classes)
    {
        $createSchemaSql = $this->getCreateSchemaSql($classes);
        $conn            = $this->em->getConnection();

        foreach ($createSchemaSql as $sql) {
            try {
                $conn->executeQuery($sql);
            } catch (Throwable $e) {
                throw ToolsException::schemaToolFailure($sql, $e);
            }
        }
    }
public function createSchema(array $classes)
    {
        $createSchemaSql = $this->getCreateSchemaSql($classes);
        $conn            = $this->em->getConnection();

        foreach ($createSchemaSql as $sql) {
            try {
                $conn->executeQuery($sql);
            } catch (Throwable $e) {
                throw ToolsException::schemaToolFailure($sql, $e);
            }
        }
    }
public function createSchema ( array $ classes ) { $ createSchemaSql = $ this -> getCreateSchemaSql ( $ classes ) ; $ conn = $ this -> em -> getConnection ( ) ; foreach ( $ createSchemaSql as $ sql ) { try { $ conn -> executeQuery ( $ sql ) ; } catch ( Throwable $ e ) { throw ToolsException :: schemaToolFailure ( $ sql , $ e ) ; } } }
Creates the database schema for the given array of ClassMetadata instances.

@param ClassMetadata[] $classes

@throws ToolsException
Creates the database schema for the given array of ClassMetadata instances .