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
at line 44
public
addAddedTable(string $tableName, Table $addedTable)
Add an added table
at line 54
public
removeAddedTable(string $tableName)
Remove an added table
at line 64
public array
getAddedTables()
Getter for the addedTables property
at line 74
public integer
countAddedTables()
Get the number of added tables
at line 86
public
getAddedTable($tableName)
Get an added table
at line 96
public
setRemovedTables(array $removedTables)
Setter for the removedTables property
at line 107
public
addRemovedTable(string $tableName, Table $removedTable)
Add a removed table
at line 117
public
removeRemovedTable(string $tableName)
Remove a removed table
at line 127
public array
getRemovedTables()
Getter for the removedTables property
at line 137
public integer
countRemovedTables()
Get the number of removed tables
at line 149
public
getRemovedTable($tableName)
Get a removed table
at line 159
public
setModifiedTables(array $modifiedTables)
Setter for the modifiedTables property
at line 170
public
addModifiedTable(string $tableName, PropelTableDiff $modifiedTable)
Add a table difference
at line 180
public integer
countModifiedTables()
Get the number of modified tables
at line 190
public array
getModifiedTables()
Getter for the modifiedTables property
at line 200
public
setRenamedTables(array $renamedTables)
Setter for the renamedTables property
at line 211
public
addRenamedTable(string $fromName, string $toName)
Add a renamed table
at line 221
public array
getRenamedTables()
Getter for the renamedTables property
at line 231
public integer
countRenamedTables()
Get the number of renamed tables
at line 241
public PropelDatabaseDiff
getReverseDiff()
Get the reverse diff for this diff
at line 268
public string
getDescription()
Get a description of the database modifications