Temporary fix to avoid deprecation notices in Symfony 2.2
Merge pull request #11 from XWB/entitymanager-fix

Temporary fix to avoid deprecation notices in Symfony 2.2