Skip to content

Command - counter_cache - wrong order of tables #8195

@r380r391

Description

@r380r391

Description

Hello,

I am on version 5.2.12. And I think there is something wrong with a command in the below page:
https://book.cakephp.org/5.x/console-commands/counter-cache.html

The above page shows the sample (could be wrong):
bin/cake counter_cache --assoc Comments Articles

But I think the order of tables is wrong, and the below worked for me:
bin/cake counter_cache --assoc Articles Comments

CakePHP Version

5.2.12

PHP Version

8.3.28

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions