temporary fix for doctrine hydrator