deprecation fix
fix for newest doctrine