lib/Doctrine/ORM/Tools/SchemaTool.php
public function updateSchema(array $classes, $saveMode = false)
    {
        $updateSchemaSql = $this->getUpdateSchemaSql($classes, $saveMode);
        $conn            = $this->em->getConnection();

        foreach ($updateSchemaSql as $sql) {
            $conn->executeQuery($sql);
        }
    }
public function updateSchema(array $classes, $saveMode = false)
    {
        $updateSchemaSql = $this->getUpdateSchemaSql($classes, $saveMode);
        $conn            = $this->em->getConnection();

        foreach ($updateSchemaSql as $sql) {
            $conn->executeQuery($sql);
        }
    }
public function updateSchema ( array $ classes , $ saveMode = false ) { $ updateSchemaSql = $ this -> getUpdateSchemaSql ( $ classes , $ saveMode ) ; $ conn = $ this -> em -> getConnection ( ) ; foreach ( $ updateSchemaSql as $ sql ) { $ conn -> executeQuery ( $ sql ) ; } }
Updates the database schema of the given classes by comparing the ClassMetadata
instances to the current database schema that is inspected.

@param ClassMetadata[] $classes
@param bool            $saveMode If TRUE, only performs a partial update
without dropping assets which are scheduled for deletion.
Updates the database schema of the given classes by comparing the ClassMetadata instances to the current database schema that is inspected .