fix compatibility  with doctrine 2.3