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

前端 未结 5 1786
既然无缘
既然无缘 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 21:00

    Beware, this error can also be raised when using 'by_reference' => false, in your form type with relations that are not ManyToMany.
    An unfortunate copy/paste put me in this situation.

提交回复
热议问题