The problem When a software handles multiple concurrent operations an entire class of problems arises. In our case multiple requests would try to update centralized information leading to unique constraint violations at the database level. That was because the code would check if an entity to update already existed and…

Symfony form is a standalone component you can use to save a lot of time when developing an application that needs forms to interact with users (checkout my talk and slides from SfDayIt 2016 in Rome) As every powerful component/library/extension, power comes to a price. The price to pay for using…

It’s a simple class that represent a DateTimeInterval with a flag named allDayLong that let an object of DateTimeInterval class to fill all day. You can see that setFrom and setTo are affected from allDayLong flag: if is set, time of these DateTime are changed in order to fill all day. But…

Just a quick tip for assets versioning with Symfony2. Let’s imagine you have an asset, called “beautifulAsset.js”, in your app. As soon as it’s requested, the user browser caches it. So far so good. Problems arise when you change the code inside “beautifulAsset.js” and deploy your application. If you don’t…