fixed according to last api2symfony PR creads/api2symfony#8

to merge after https://github.com/creads/api2symfony/pull/8