File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
lib/internal/Magento/Framework/DB/Adapter Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,13 @@ public function insertForce($table, array $bind);
492492 /**
493493 * Updates table rows with specified data based on a WHERE clause.
494494 *
495+ * The $where parameter in this instance can be a single WHERE clause or an array containing a multiple. In all
496+ * instances, a WHERE clause can be a string or an instance of {@see Zend_Db_Expr}. In the event you use an array,
497+ * you may specify the clause as the key and a value to be bound to it as the value. E.g., ['amt > ?' => $amt]
498+ *
499+ * If the $where parameter is an array of multiple clauses, they will be joined by AND, with each clause wrapped in
500+ * parenthesis. If you wish to use an OR, you must give a single clause that is an instance of {@see Zend_Db_Expr}
501+ *
495502 * @param mixed $table The table to update.
496503 * @param array $bind Column-value pairs.
497504 * @param mixed $where UPDATE WHERE clause(s).
You can’t perform that action at this time.
0 commit comments