Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ab9996

Browse files
authored
Merge pull request #7276 from Majkl578/entityrepository-count-upgrade
Add UPGRADE note for EntityRepository::count()
2 parents ceda5d3 + f2666a4 commit 9ab9996

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

UPGRADE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Upgrade to 2.6
22

3+
## Added `Doctrine\ORM\EntityRepository::count()` method
4+
5+
`Doctrine\ORM\EntityRepository::count()` has been added. This new method has different
6+
signature than `Countable::count()` (required parameter) and therefore are not compatible.
7+
If your repository implemented the `Countable` interface, you will have to use
8+
`$repository->count([])` instead and not implement `Countable` interface anymore.
9+
310
## Minor BC BREAK: `Doctrine\ORM\Tools\Console\ConsoleRunner` is now final
411

512
Since it's just an utilitarian class and should not be inherited.

0 commit comments

Comments
 (0)