Is it possible to count related objects without selecting all of them? Now possible is:
$user->getAddresses()->count()
However ORM selects every addresses related to user and then count them. I would like to only execute:
SELECT count() FROM...
is it possible somehow with ORM?