For
May 6, 2025 ยท View on GitHub
The FOR clause allows you to specify table locking behavior during a SELECT statement. It's commonly used to control
concurrent access to data in multi-user database environments.
The Yiisoft\Db\Query\Query class provides three methods to specify the FOR fragment of a SQL query:
for()- sets theFORpart of the query;addFor()- adds moreFORparts to the existing ones;setFor()- overwrites theFORpart of the query.