From 9bf7c96f26437399bd9e58be03b241fc0d284d5d Mon Sep 17 00:00:00 2001 From: jef348 <71833496+jef348@users.noreply.github.com> Date: Sat, 19 Feb 2022 05:07:44 -0500 Subject: [PATCH] Update db-active-record.md (#19250) Complete the php command. --- docs/guide/db-active-record.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/db-active-record.md b/docs/guide/db-active-record.md index 5732856..e877274 100644 --- a/docs/guide/db-active-record.md +++ b/docs/guide/db-active-record.md @@ -532,7 +532,7 @@ that will be encoded by [QueryBuilder](db-query-builder.md) to an PgSQL string r You can also use conditions for JSON columns: ```php -$query->andWhere(['=', 'json', new ArrayExpression(['foo' => 'bar']) +$query->andWhere(['=', 'json', new ArrayExpression(['foo' => 'bar'])]) ``` To learn more about expressions building system read the [Query Builder – Adding custom Conditions and Expressions](db-query-builder.md#adding-custom-conditions-and-expressions)