Skip to content

Commit 87a997d

Browse files
committed
docs: update existing docs
1 parent 8ae2dd6 commit 87a997d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

user_guide_src/source/models/model.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,11 @@ of the columns in a ``$table``, while the array's values are the values to save
353353

354354
.. literalinclude:: model/016.php
355355

356-
.. important:: If the ``$primaryKey`` field is set to ``null`` then the update will affect all records in the table.
356+
.. important:: Since v4.3.0, this method raises a ``DatabaseException``
357+
if it generates an SQL statement without a WHERE clause.
358+
In previous versions, if it is called without ``$primaryKey`` specified and
359+
an SQL statement was generated without a WHERE clause, the query would still
360+
execute and all records in the table would be updated.
357361

358362
Multiple records may be updated with a single call by passing an array of primary keys as the first parameter:
359363

0 commit comments

Comments
 (0)