bug with doctrine