Naming your parameters

08. August 2020 Doctrine, Symfony 0
Last week I stumbled upon a new behavior, for me at least, in the way Symfony uses the route parameters to populate your method variables. In my situation I had a few parameters in my method, one of which was an entity reference, defaulting to null. Accessing the method whilst expecting that one entity to ...

Flush when you are done

02. August 2020 Doctrine, Symfony 0
Timing. It’s all about timing. Using Doctrine as your ORM for example, starting a transaction and committing it to the database, the flush sequence, is one of the most costly operations in your application. Sadly, as a developer I know this trap all to well. Imagine writing some functionality where you have to modify some complex ...