Skip to content

Commit 625a70d

Browse files
committed
Update query-builder.rst
1 parent 2c69e55 commit 625a70d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/reference/query-builder.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,13 @@ Most notably you can use expressions to build nested And-/Or statements:
332332
->select('id', 'name')
333333
->from('users')
334334
->where(
335-
$queryBuilder->expr()->andX(
335+
$queryBuilder->expr()->and(
336336
$queryBuilder->expr()->eq('username', '?'),
337337
$queryBuilder->expr()->eq('email', '?')
338338
)
339339
);
340340
341-
The ``andX()`` and ``orX()`` methods accept an arbitrary amount
341+
The ``and()`` and ``or()`` methods accept an arbitrary amount
342342
of arguments and can be nested in each other.
343343

344344
There is a bunch of methods to create comparisons and other SQL snippets

0 commit comments

Comments
 (0)