Since version 3.0.6 they have permanently deleted (removed) the getEntityManager () method and it is now getManager ().
If you are using version 3.0.0 you will not have problems, but with version 3.0.6 or higher Symfony realizes that when we do it
$ Em = $ this-> getDoctrine () -> getEntityManager ()
In an action you must change it to this
$ Em = $ this-> getDoctrine () -> getManager ();
To work correctly
Is it possible to continue using getEntityManager () in versions 3.0.6 or higher?
Place the question in the English version: link but I would like to know your criteria.
Greetings