fix deprecated calls

`getEntityManagerForClass`is deprecated since Symfony 2.1. In my simple case it reduce the warnings from > 100 to 14 ;)