From 625a70dbf0dc8bc35db0e9aa09d4677d66d40668 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Mon, 27 Jan 2020 20:36:39 +0100 Subject: [PATCH] Update query-builder.rst --- docs/en/reference/query-builder.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/reference/query-builder.rst b/docs/en/reference/query-builder.rst index 059a70bef5f..3c201df41d2 100644 --- a/docs/en/reference/query-builder.rst +++ b/docs/en/reference/query-builder.rst @@ -332,13 +332,13 @@ Most notably you can use expressions to build nested And-/Or statements: ->select('id', 'name') ->from('users') ->where( - $queryBuilder->expr()->andX( + $queryBuilder->expr()->and( $queryBuilder->expr()->eq('username', '?'), $queryBuilder->expr()->eq('email', '?') ) ); -The ``andX()`` and ``orX()`` methods accept an arbitrary amount +The ``and()`` and ``or()`` methods accept an arbitrary amount of arguments and can be nested in each other. There is a bunch of methods to create comparisons and other SQL snippets