-1
I’m trying to run this query,
My relationship is not explicit between Customer and Competitor;
I’m getting this error, that I can’t get details of what’s going on,
I can’t get the $queryBuilder->getQuery()->getSQL()
.
this image of the query I made in the group and try to replicate in Doctrine:
some hint of how to run this Leftjoin?
thank you.
I haven’t programmed in PHP for many years and I don’t even use any framework like symfony. But, a suggestion I give you, first thing: Do the SQL query right in the database for what you need. Then, see if there is a feature in Symphony that allows you to show the generated SQL to test in the database and check if the command works with the expected results. Compare the two queries. If it doesn’t work you will find the error but easily. If you put this inside a Try-catch cannot capture the exception?
– Mateus
@Matthew I generated the desired query in the database, and it works perfectly. this penultimate photo is from Try catch with the error returned. added the photo with the query I did in the databank.
– Renan Arrieiro