compatible code with doctrine 2.4.*@dev