diff --git a/lib/Doctrine/ORM/EntityRepository.php b/lib/Doctrine/ORM/EntityRepository.php index 0c2823757..1934a18d0 100644 --- a/lib/Doctrine/ORM/EntityRepository.php +++ b/lib/Doctrine/ORM/EntityRepository.php @@ -237,7 +237,7 @@ class EntityRepository implements ObjectRepository, Selectable throw new \BadMethodCallException( "Undefined method '$method'. The method name must start with ". - "either findBy or findOneBy!" + "either findBy, findOneBy or countBy!" ); }