Answer the question
In order to leave comments, you need to log in
How to get a result with only one type of entity in Doctrine 2 when selecting multiple entities?
Those. I get a pseudo-request
SELECT a, c
FROM Aticle a
JOIN Comments c
Article
entity is in it, but Comments
it is already attached to Article
. Answer the question
In order to leave comments, you need to log in
Such request just also does that you described.
It turns out an Article[] array with comments bound to the Article entity
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question