SyntaxFix
Write A Post
Hire A Developer
Questions
Since Doctrine 2.6 it is possible to use count() method directly from EntityRepository. For details see the link.
Doctrine 2.6
count()
EntityRepository
https://github.com/doctrine/doctrine2/blob/77e3e5c96c1beec7b28443c5b59145eeadbc0baf/lib/Doctrine/ORM/EntityRepository.php#L161