Skip to content

Commit 50456d1

Browse files
committed
docs(database): clarify lockForUpdate transaction scope
Signed-off-by: memleakd <121398829+memleakd@users.noreply.github.com>
1 parent 735be40 commit 50456d1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎user_guide_src/source/database/query_builder.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,10 @@ from modifying it first.
773773

774774
.. literalinclude:: query_builder/124.php
775775

776-
Use this method inside a database transaction. The exact locking behavior is
777-
determined by the database server and transaction isolation level.
776+
Use this method inside a database transaction. Without an explicit transaction,
777+
the lock is typically released when the ``SELECT`` statement finishes. The exact
778+
locking behavior is determined by the database server and transaction isolation
779+
level.
778780

779781
This method is supported by the **MySQLi**, **Postgre**, **OCI8**, and
780782
**SQLSRV** drivers. Unsupported drivers throw a ``DatabaseException``.

0 commit comments

Comments
 (0)