Add debug for doctrine1