Propel API
Class

PropelDatabaseDiff

class PropelDatabaseDiff

Value object for storing Database object diffs Heavily inspired by Doctrine2's Migrations (see http://github.com/doctrine/dbal/tree/master/lib/Doctrine/DBAL/Schema/)

Methods

setAddedTables(array $addedTables)

Setter for the addedTables property

addAddedTable(string $tableName, Table $addedTable)

Add an added table

removeAddedTable(string $tableName)

Remove an added table

array getAddedTables()

Getter for the addedTables property

integer countAddedTables()

Get the number of added tables

getAddedTable($tableName)

Get an added table

setRemovedTables(array $removedTables)

Setter for the removedTables property

addRemovedTable(string $tableName, Table $removedTable)

Add a removed table

removeRemovedTable(string $tableName)

Remove a removed table

array getRemovedTables()

Getter for the removedTables property

integer countRemovedTables()

Get the number of removed tables

getRemovedTable($tableName)

Get a removed table

setModifiedTables(array $modifiedTables)

Setter for the modifiedTables property

addModifiedTable(string $tableName, PropelTableDiff $modifiedTable)

Add a table difference

integer countModifiedTables()

Get the number of modified tables

array getModifiedTables()

Getter for the modifiedTables property

setRenamedTables(array $renamedTables)

Setter for the renamedTables property

addRenamedTable(string $fromName, string $toName)

Add a renamed table

array getRenamedTables()

Getter for the renamedTables property

integer countRenamedTables()

Get the number of renamed tables

PropelDatabaseDiff getReverseDiff()

Get the reverse diff for this diff

string getDescription()

Get a description of the database modifications

__toString()

Details

at line 33
public setAddedTables(array $addedTables)

Setter for the addedTables property

Parameters

array $addedTables

at line 44
public addAddedTable(string $tableName, Table $addedTable)

Add an added table

Parameters

string $tableName
Table $addedTable

at line 54
public removeAddedTable(string $tableName)

Remove an added table

Parameters

string $tableName

at line 64
public array getAddedTables()

Getter for the addedTables property

Return Value

array

at line 74
public integer countAddedTables()

Get the number of added tables

Return Value

integer

at line 86
public getAddedTable($tableName)

Get an added table

Parameters

$tableName

at line 96
public setRemovedTables(array $removedTables)

Setter for the removedTables property

Parameters

array $removedTables

at line 107
public addRemovedTable(string $tableName, Table $removedTable)

Add a removed table

Parameters

string $tableName
Table $removedTable

at line 117
public removeRemovedTable(string $tableName)

Remove a removed table

Parameters

string $tableName

at line 127
public array getRemovedTables()

Getter for the removedTables property

Return Value

array

at line 137
public integer countRemovedTables()

Get the number of removed tables

Return Value

integer

at line 149
public getRemovedTable($tableName)

Get a removed table

Parameters

$tableName

at line 159
public setModifiedTables(array $modifiedTables)

Setter for the modifiedTables property

Parameters

array $modifiedTables

at line 170
public addModifiedTable(string $tableName, PropelTableDiff $modifiedTable)

Add a table difference

Parameters

string $tableName
PropelTableDiff $modifiedTable

at line 180
public integer countModifiedTables()

Get the number of modified tables

Return Value

integer

at line 190
public array getModifiedTables()

Getter for the modifiedTables property

Return Value

array

at line 200
public setRenamedTables(array $renamedTables)

Setter for the renamedTables property

Parameters

array $renamedTables

at line 211
public addRenamedTable(string $fromName, string $toName)

Add a renamed table

Parameters

string $fromName
string $toName

at line 221
public array getRenamedTables()

Getter for the renamedTables property

Return Value

array

at line 231
public integer countRenamedTables()

Get the number of renamed tables

Return Value

integer

at line 241
public PropelDatabaseDiff getReverseDiff()

Get the reverse diff for this diff

Return Value

PropelDatabaseDiff

at line 268
public string getDescription()

Get a description of the database modifications

Return Value

string

at line 287
public __toString()