Blog Posts

This information is available in NewRelic's documentation but as it's not that obvious to find and I've used it a lot I'd thought sharing it again couldn't hurt. When you install the NewRelic PHP extension defaults to collecting all metrics against "…

Recently I was creating an interactive console command and I wanted to make it clearer for the user. To do this I needed to be able to clear the terminal window to make the actions stand out. It's actually really simple: $output->write(chr(27).chr…

Recently while converting a site from using MySQL to PostgreSQL I found an annoyling abscure problem I dind't realise would ever be an issue. The site in question use Doctrine2 withing Symfony2 and had 2 previously working tables, products and manufa…

So these past few weeks I've been working hard on a system to handle importing items from numerous third party providers without using a huge amount of resource. Initially this seemed a trivial task and I set out with much hope of completing this wit…

Recently I was writing a small event listener to handle updating search indexes for object freshly persisted to the database. I am using MySQL as my backend, and because of this IDs are generated after the object has been inserted, not before. I spen…

When creating a form in Symfony 1.2 sometimes you may want to use Doctrine to automatically save your related data. Since the update to 1.1 there is a small problem in that this doesn't work. For example let's take the Faqs section. Each FAQ can have…