Skip to content

Commit 7e8b086

Browse files
committed
docs: add notes
1 parent 6c956b0 commit 7e8b086

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

user_guide_src/source/database/query_builder.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,12 +1095,17 @@ UpdateBatch
10951095
$builder->updateBatch()
10961096
-----------------------
10971097

1098+
.. note:: Since v4.3.0, the second parameter ``$index`` of ``updateBatch()`` has
1099+
changed to ``$constraints``. It now accepts types array, string, or ``RawSql``.
1100+
10981101
Generates an update string based on the data you supply, and runs the query.
10991102
You can either pass an **array** or an **object** to the method.
11001103
Here is an example using an array:
11011104

11021105
.. literalinclude:: query_builder/092.php
11031106

1107+
.. note:: Since v4.3.0, the generated SQL structure has been Improved.
1108+
11041109
The first parameter is an associative array of values, the second parameter is the where key.
11051110

11061111
.. note:: All values except ``RawSql`` are escaped automatically producing safer queries.

0 commit comments

Comments
 (0)