Answer the question
In order to leave comments, you need to log in
How to get an extra field along with the rest?
I'm trying to get a list of all elements and add to them a property of type COUNT (...) AS counter calculated in the database, and as a result it makes an array of nested values
[
[
[...данные из таблицы..],
[counter: число]
]
]
->addSelect('count(p.point) AS count')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question