Fixing patches application with Doctrine ORM