php - Doctrine: extra where on relation (many-to-many)

Solution:
From what I can gather, your options are the following:
- Introduce an entity to represent entries in the
media_relations
table, plus the appropriate associations with other tables. - Introduce a 'media relations' hierarchy via class-table inheritance (to model the different 'types') and query only on 'Gallery' types. Doctrine inheritance documentation.
In both cases you'd then expose the underlying table to Doctrine such that you can use DQL to get at the data you need.
HTH
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: videoxxx
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.