Doctrine\ORM\Tools\SchemaTool::getUpdateSchemaSql
Gets the sequence of SQL statements that need to be performed in order to bring the given class mappings in-synch with the relational schema.
If $saveMode is set to true the command is executed in the Database, else SQL is returned.
Signature
public function getUpdateSchemaSql(array
$classes,
[boolean
$saveMode = false] )
Parameters
$classes
— array- The classes to consider.
$saveMode
— boolean- True for writing to DB, false for SQL string
Returns
- array
- The sequence of SQL statements.