But it does not work with exception message:
Entit
In my case, it just was because by my fault I was using the QueryManager instead of EntityManager to find the entity in my controller.
QueryManager
EntityManager