Improve documentation of $old_fields possible values in DBA::update and Database->update

This commit is contained in:
Hypolite Petovan 2021-09-05 14:37:42 -04:00
parent bd09f5f665
commit 7ee88c3457
2 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ class DBA
* @param string|array $table Table name or array [schema => table]
* @param array $fields contains the fields that are updated
* @param array $condition condition array with the key values
* @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate)
* @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate, false = don't update identical fields)
*
* @return boolean was the update successfull?
* @throws \Exception

View File

@ -1267,7 +1267,7 @@ class Database
* @param string|array $table Table name or array [schema => table]
* @param array $fields contains the fields that are updated
* @param array $condition condition array with the key values
* @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate)
* @param array|boolean $old_fields array with the old field values that are about to be replaced (true = update on duplicate, false = don't update identical fields)
*
* @return boolean was the update successfull?
* @throws \Exception