Doctrine


Doctrine\DBAL\Schema\SchemaDiff
/Doctrine/DBAL/Schema/SchemaDiff.php at line 37

Class SchemaDiff

SchemaDiff

public class SchemaDiff

Schema Diff

License:
http://www.opensource.org/licenses/lgpl-license.php LGPL
http://ez.no/licenses/new_bsd New BSD License
See Also:
www.doctrine-project.org
Copyright:
Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
Since:
2.0
Version:
$Revision$
Author:
Benjamin Eberlei

Field Summary
array

$changedSequences

array(string=>ezcDbSchemaTableDiff)

$changedTables

All changed tables

array

$newSequences

array(string=>ezcDbSchemaTable)

$newTables

All added tables

array

$orphanedForeignKeys

array

$removedSequences

array(string=>Table)

$removedTables

All removed tables

Constructor Summary

SchemaDiff(array(string=>Table) newTables, array(string=>TableDiff) changedTables, array(string=>bool) removedTables)

Constructs an SchemaDiff object.

Method Summary
array

toSaveSql(AbstractPlatform platform)

The to save sql mode ensures that the following things don't happen:1.

array

toSql(AbstractPlatform platform)

Field Detail

/Doctrine/DBAL/Schema/SchemaDiff.php at line 68

changedSequences

public array $changedSequences = array()


/Doctrine/DBAL/Schema/SchemaDiff.php at line 51

changedTables

public array(string=>ezcDbSchemaTableDiff) $changedTables = array()

All changed tables


/Doctrine/DBAL/Schema/SchemaDiff.php at line 63

newSequences

public array $newSequences = array()


/Doctrine/DBAL/Schema/SchemaDiff.php at line 44

newTables

public array(string=>ezcDbSchemaTable) $newTables = array()

All added tables


/Doctrine/DBAL/Schema/SchemaDiff.php at line 78

orphanedForeignKeys

public array $orphanedForeignKeys = array()


/Doctrine/DBAL/Schema/SchemaDiff.php at line 73

removedSequences

public array $removedSequences = array()


/Doctrine/DBAL/Schema/SchemaDiff.php at line 58

removedTables

public array(string=>Table) $removedTables = array()

All removed tables


Constructor Detail

/Doctrine/DBAL/Schema/SchemaDiff.php at line 87

SchemaDiff

public SchemaDiff(array(string=>Table) newTables, array(string=>TableDiff) changedTables, array(string=>bool) removedTables)

Constructs an SchemaDiff object.


Method Detail

/Doctrine/DBAL/Schema/SchemaDiff.php at line 106

toSaveSql

public array toSaveSql(AbstractPlatform platform)

The to save sql mode ensures that the following things don't happen:

1. Tables are deleted 2. Sequences are deleted 3. Foreign Keys which reference tables that would otherwise be deleted.

This way it is ensured that assets are deleted which might not be relevant to the metadata schema at all.


/Doctrine/DBAL/Schema/SchemaDiff.php at line 115

toSql

public array toSql(AbstractPlatform platform)


Doctrine