Skip to content

Commit

Permalink
fix documentation of schema tool's "save mode"
Browse files Browse the repository at this point in the history
fixes #5596
  • Loading branch information
deeky666 committed Jan 8, 2016
1 parent 1697293 commit f9217cf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/Doctrine/ORM/Tools/SchemaTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,11 +841,11 @@ public function getDropSchemaSQL(array $classes)

/**
* Updates the database schema of the given classes by comparing the ClassMetadata
* instances to the current database schema that is inspected. If $saveMode is set
* to true the command is executed in the Database, else SQL is returned.
* instances to the current database schema that is inspected.
*
* @param array $classes
* @param boolean $saveMode
* @param boolean $saveMode If TRUE, only performs a partial update
* without dropping assets which are scheduled for deletion.
*
* @return void
*/
Expand All @@ -862,11 +862,10 @@ public function updateSchema(array $classes, $saveMode = false)
/**
* 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.
*
* @param array $classes The classes to consider.
* @param boolean $saveMode True for writing to DB, false for SQL string.
* @param boolean $saveMode If TRUE, only generates SQL for a partial update
* that does not include SQL for dropping assets which are scheduled for deletion.
*
* @return array The sequence of SQL statements.
*/
Expand Down

0 comments on commit f9217cf

Please sign in to comment.