Category: doctrine-query

How to add multiple "AND" conditions in a JOIN

I’m trying to add a “AND” condition to the join query but haven’t been able to figure it out (not sure if it’s even possible via Doctrine/Symfony). I’d appreciate any help with this. ->select(‘c, p’) ->from(Customer::class, ‘c’) ->leftJoin(‘c.phones’, ‘p’) Example:-…