diff --git a/docs/en/reference/aggregation-builder.rst b/docs/en/reference/aggregation-builder.rst index edfd12d15f..ae266d4ace 100644 --- a/docs/en/reference/aggregation-builder.rst +++ b/docs/en/reference/aggregation-builder.rst @@ -75,9 +75,9 @@ the aggregation builder. ->expression( $builder->expr() ->field('month') - ->month('purchaseDate') + ->month('$purchaseDate') ->field('year') - ->year('purchaseDate') + ->year('$purchaseDate') ) ->field('numPurchases') ->sum(1)