Fixed bugs with gearman and doctrine