mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
missing count method in EntityRepository in php 5.4 branch #5600
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gianpaolodn on GitHub (Jul 6, 2017).
Originally assigned to: @lcobucci on GitHub.
I've just installed version 2.5.5-DEV from composer for PHP 5.6 and I was trying to use the count function after getRepository, but after getting this error
The method name must start with either findBy or findOneBy
I investigated and noticed that in this branch the count method is not implemented in the EntityRepository.
How come?
ps: inserting the code
it just works.
@lcobucci commented on GitHub (Jul 7, 2017):
@gianpaolodn that's a new feature on 2.6 (which is going to be released soon), that's why it's not there.