[PR #7970] Fix countBy inconsistency #10743

Open
opened 2026-01-22 16:08:32 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/7970

State: closed
Merged: No


Currently if you use something like $repo->countBy(['visible' => true]) you'll get inarticulate error, but $repo->findBy(['visible' => true]) will work fine. After investigation you'll find that method should named count not countBy
It is weird

**Original Pull Request:** https://github.com/doctrine/orm/pull/7970 **State:** closed **Merged:** No --- Currently if you use something like `$repo->countBy(['visible' => true])` you'll get inarticulate error, but `$repo->findBy(['visible' => true])` will work fine. After investigation you'll find that method should named `count` not `countBy` It is weird
admin added the pull-request label 2026-01-22 16:08:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#10743