1
0
mirror of synced 2025-03-10 23:06:06 +03:00

Merge pull request #7276 from Majkl578/entityrepository-count-upgrade

Add UPGRADE note for EntityRepository::count()
This commit is contained in:
Luís Cobucci 2018-07-03 02:05:46 +02:00 committed by GitHub
commit 9ab999618c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,12 @@
# Upgrade to 2.6 # Upgrade to 2.6
## Added `Doctrine\ORM\EntityRepository::count()` method
`Doctrine\ORM\EntityRepository::count()` has been added. This new method has different
signature than `Countable::count()` (required parameter) and therefore are not compatible.
If your repository implemented the `Countable` interface, you will have to use
`$repository->count([])` instead and not implement `Countable` interface anymore.
## Minor BC BREAK: `Doctrine\ORM\Tools\Console\ConsoleRunner` is now final ## Minor BC BREAK: `Doctrine\ORM\Tools\Console\ConsoleRunner` is now final
Since it's just an utilitarian class and should not be inherited. Since it's just an utilitarian class and should not be inherited.