Skip to content

Commit bbfe024

Browse files
Clarify select criteria description in count method (#6222)
* Clarify select criteria description in count method connection pool has only equations "=" and no other comparisons. * [TASK] Language checks Releases: main --------- Co-authored-by: Sarah McCarthy <[email protected]>
1 parent 4a73360 commit bbfe024

File tree

1 file changed

+3
-3
lines changed
  • Documentation/ApiOverview/Database/DoctrineDbal/Connection

1 file changed

+3
-3
lines changed

Documentation/ApiOverview/Database/DoctrineDbal/Connection/Index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ Arguments of the :php:`count()` method:
332332

333333
1. The field to count, usually :sql:`*` or :sql:`uid`. Required.
334334
2. The name of the table. Required.
335-
3. The select criteria as an array of key/value pairs. The key is the field
336-
name, the value is the value. In SQL they are mapped in a :sql:`WHERE`
337-
keyword combined with :sql:`AND`. Required.
335+
3. An array of key/value pairs corresponding to the :sql:`WHERE` part of an SQL
336+
statement (and :sql:`AND` if there is more than one array entry). The key is
337+
the name of the database field. Required.
338338

339339
The method returns the counted rows.
340340

0 commit comments

Comments
 (0)