Deprecated function

PHP Deprecated: getEntityManager is deprecated since Symfony 2.1. Use getManager instead.

Also I think it is worth mentioning in documentation for which version of symfony it is best suitable.