DDC-3128: Convenience methods for count #3879

Closed
opened 2026-01-22 14:30:12 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (May 16, 2014).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user flip101:

Would be nice if the EntityRepository class had methods like: countAll() and countBy(). The countBy() method would accept the same arguments as the findBy() method. Just both method would return the count(*) instead of the values

Originally created by @doctrinebot on GitHub (May 16, 2014). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user flip101: Would be nice if the EntityRepository class had methods like: countAll() and countBy(). The countBy() method would accept the same arguments as the findBy() method. Just both method would return the count(*) instead of the values
admin added the New Feature label 2026-01-22 14:30:12 +01:00
admin closed this issue 2026-01-22 14:30:12 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 16, 2014):

Comment created by @ocramius:

The repository API is already too cluttered.

I'd suggest that for 3.x, we may make repositories compatible with collections instead

@doctrinebot commented on GitHub (May 16, 2014): Comment created by @ocramius: The repository API is already too cluttered. I'd suggest that for 3.x, we may make repositories compatible with collections instead
Author
Owner

@doctrinebot commented on GitHub (May 16, 2014):

Issue was closed with resolution "Won't Fix"

@doctrinebot commented on GitHub (May 16, 2014): Issue was closed with resolution "Won't Fix"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3879