diff --git a/en/orm/behaviors/counter-cache.rst b/en/orm/behaviors/counter-cache.rst index a637943acf..ae87db1142 100644 --- a/en/orm/behaviors/counter-cache.rst +++ b/en/orm/behaviors/counter-cache.rst @@ -136,8 +136,8 @@ then updates the counter of the *previously* associated item. As of CakePHP 5.1.2, the counter cache values are updated using a single query using sub-queries, instead of separate queries, to fetch the count and update a record. If required you can disable the use of sub-queries by - setting `useSubqueries` key to `false` in the config - `['Articles' => ['comment_count' => ['useSubQueries' => false]]` + setting `useSubQuery` key to `false` in the config + `['Articles' => ['comment_count' => ['useSubQuery' => false]]` Belongs to many Usage =====================