Skip to content

Commit

Permalink
Update counter-cache.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad authored Oct 14, 2024
1 parent 8c836e6 commit d940679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/orm/behaviors/counter-cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====================
Expand Down

0 comments on commit d940679

Please sign in to comment.