Hi there, how can i use result of Agregate function in where in Doctrine?
For example i want to know user with silly much numbers.
SELECT u.name, COUNT(p.id) AS users_phonenumber_count
FROM users u
INNER JOIN phonenumbers p ON p.user_id = u.id
WHERE
users_phonenumber_count > 10
GROUP BY
u.id
How can i access the *users_phonenumber_count* in where in Dql?