Today I found myself deploying a Symfony project to an Azure environment that requires SSL connections to MySQL. I figured this out the hard way when I started getting these errors:
Symfony
Prevent Composer from updating your Symfony components to unsupported versions with the colinodell/symfony-lts-or-current
metapackage.
I recently needed the ability to perform a RIGHT JOIN
in a Symfony project. While Doctrine's DBAL library seems to support this, the ORM's QueryBuilder does not. Unfortunately, the suggested workaround of inverting the query wouldn't work in my situation. I also didn't feel like rewriting the query into DQL, so I ultimately hacked in my own support by duplicating the LEFT JOIN
functionality. I figured I'd share my patch in case it helps others facing a similar issue.
TIL that Doctrine 2 doesn't support LIMIT
s within subqueries which can be frustrating. In my case, I wanted to LEFT JOIN
on a table using a subquery with a single result - something like this:
$dqb->from('MyAppBundle:Foo', 'foo')
->leftJoin('foo.bar', 'bar', 'WITH', 'bar = (SELECT b FROM MyAppBundle:Bar b WHERE b.foo = foo AND b.published_date >= :now ORDER BY t.startDate LIMIT 1)');
But Doctrine kept throwing this error:
Simple bundle for implementing Omnipay in your Symfony application.