Symfony & Doctrine: Using table joins with unassociated entities

In Symfony using Doctrine, if no association is available for two entities, you can still join them and treat them like they have a relationship.  To do so, you have to use the “Join: WITH” method.  Here’s an example query to illustrate, notice the “a.user =”.

Some other helpful links on Stack Overflow:

Here’s a great reference for advanced Doctrine queries:

Aaron Belchamber has written 247 articles

Leave a Reply

Your email address will not be published. Required fields are marked *