public function update(array $metadata, $saveMode=false)
    {
        $fromSchema = $this->schemaManager->createSchema();
        $toSchema = $this->getSchemaFromMetadata($metadata);

        $comparator = new Comparator;
        $schemaDiff = $comparator->compare($fromSchema, $toSchema);

        if ($saveMode) {
            $statements = $schemaDiff->toSaveSql($this->platform);
        } else {
            $statements = $schemaDiff->toSql($this->platform);
        }

        $this->build($statements);

        return $statements;
    }
public function update(array $metadata, $saveMode=false)
    {
        $fromSchema = $this->schemaManager->createSchema();
        $toSchema = $this->getSchemaFromMetadata($metadata);

        $comparator = new Comparator;
        $schemaDiff = $comparator->compare($fromSchema, $toSchema);

        if ($saveMode) {
            $statements = $schemaDiff->toSaveSql($this->platform);
        } else {
            $statements = $schemaDiff->toSql($this->platform);
        }

        $this->build($statements);

        return $statements;
    }
public function update ( array $ metadata , $ saveMode = false ) { $ fromSchema = $ this -> schemaManager -> createSchema ( ) ; $ toSchema = $ this -> getSchemaFromMetadata ( $ metadata ) ; $ comparator = new Comparator ; $ schemaDiff = $ comparator -> compare ( $ fromSchema , $ toSchema ) ; if ( $ saveMode ) { $ statements = $ schemaDiff -> toSaveSql ( $ this -> platform ) ; } else { $ statements = $ schemaDiff -> toSql ( $ this -> platform ) ; } $ this -> build ( $ statements ) ; return $ statements ; }
Update all tables.

@param array $metadata
@param boolean $saveMode
@return array
Update all tables .