Skip to content

Commit e400817

Browse files
author
Stanislav Idolov
authored
ENGCOM-1318: Add expanded documentation to AdapterInterface::update #14755
2 parents 4760706 + 239f240 commit e400817

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/internal/Magento/Framework/DB/Adapter/AdapterInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,13 @@ public function insertForce($table, array $bind);
495495
/**
496496
* Updates table rows with specified data based on a WHERE clause.
497497
*
498+
* The $where parameter in this instance can be a single WHERE clause or an array containing a multiple. In all
499+
* instances, a WHERE clause can be a string or an instance of {@see Zend_Db_Expr}. In the event you use an array,
500+
* you may specify the clause as the key and a value to be bound to it as the value. E.g., ['amt > ?' => $amt]
501+
*
502+
* If the $where parameter is an array of multiple clauses, they will be joined by AND, with each clause wrapped in
503+
* parenthesis. If you wish to use an OR, you must give a single clause that is an instance of {@see Zend_Db_Expr}
504+
*
498505
* @param mixed $table The table to update.
499506
* @param array $bind Column-value pairs.
500507
* @param mixed $where UPDATE WHERE clause(s).

0 commit comments

Comments
 (0)