I’ve read the Doctrine2 documentation about native sql queries.
It doesn’t talk about entities joined by a ManyToMany relation.
I didn’t figure how to handle that, any idea or example.
I’ve read the Doctrine2 documentation about native sql queries. It doesn’t talk about entities
Share
You just have to manually add the join table into the sql. Extending the example in chpt 14 of the Doctrine manual:
This example assumes your join table has fields address and user for its keys.