No Entity Manager defined exception
bug #9535 No Entity Manager defined exception (armetiz)

This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #9535).

Discussion
----------

No Entity Manager defined exception

This PR is linked to this issue : https://github.com/symfony/symfony/issues/9534

Commits
-------

719ccb7 No Entity Manager defined exception