How to avoid “Entities passed to the choice field must be managed. Maybe persist them in the entity manager?”

前端 未结 5 1767
既然无缘
既然无缘 2020-12-20 19:56
  1. Generated Entities from existing database
  2. Generated CRUD controller

But it does not work with exception message:

Entit

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-20 20:52

    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.

提交回复
热议问题