Bug #26493

Repository::countAll() does not return integers

Added by Bastian Waidelich over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
Persistence
Start date:
2011-04-29
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

RepositoryInterface::countAll() should return integers. But apparently the doctrine integration does not cast the return type thus

$repository->countAll() === 1
will never be TRUE.

Also available in: Atom PDF