[PR #560] [CLOSED] Add EntityRepository->countBy() method to complement findBy() #8376

Closed
opened 2026-01-22 15:59:37 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/560
Author: @alex-signature-it
Created: 1/27/2013
Status: Closed

Base: masterHead: 717fd3d9bca894354fce650f70008d468128ca04


📝 Commits (1)

  • 717fd3d Add EntityRepository->countBy() method to complement findBy()

📊 Changes

6 files changed (+187 additions, -1 deletions)

View changed files

📝 lib/Doctrine/ORM/EntityRepository.php (+18 -0)
📝 lib/Doctrine/ORM/Persisters/BasicEntityPersister.php (+48 -0)
📝 tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php (+83 -0)
📝 tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php (+12 -0)
📝 tests/Doctrine/Tests/ORM/Functional/SingleTableInheritanceTest.php (+23 -0)
📝 tests/Doctrine/Tests/ORM/Functional/TypeTest.php (+3 -1)

📄 Description

It would be reasonable to add the method to ObjectRepository interface, but I might not be aware of all its implementations that will become broken


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/560 **Author:** [@alex-signature-it](https://github.com/alex-signature-it) **Created:** 1/27/2013 **Status:** ❌ Closed **Base:** `master` ← **Head:** `717fd3d9bca894354fce650f70008d468128ca04` --- ### 📝 Commits (1) - [`717fd3d`](https://github.com/doctrine/orm/commit/717fd3d9bca894354fce650f70008d468128ca04) Add EntityRepository->countBy() method to complement findBy() ### 📊 Changes **6 files changed** (+187 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/Doctrine/ORM/EntityRepository.php` (+18 -0) 📝 `lib/Doctrine/ORM/Persisters/BasicEntityPersister.php` (+48 -0) 📝 `tests/Doctrine/Tests/ORM/Functional/EntityRepositoryTest.php` (+83 -0) 📝 `tests/Doctrine/Tests/ORM/Functional/SQLFilterTest.php` (+12 -0) 📝 `tests/Doctrine/Tests/ORM/Functional/SingleTableInheritanceTest.php` (+23 -0) 📝 `tests/Doctrine/Tests/ORM/Functional/TypeTest.php` (+3 -1) </details> ### 📄 Description It would be reasonable to add the method to ObjectRepository interface, but I might not be aware of all its implementations that will become broken --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:59:37 +01:00
admin closed this issue 2026-01-22 15:59:38 +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#8376