I have an entity called Question
which has a Many to Many relationship with another entity User
. So I have following tables:
question(id, field1, users)
user(id, name)
question_user(question_id, user_id)
I use EasyAdmin for creating QuestionCrud form where I use AssociationField
for assigning multiple Users to a Question. If I use AssociationField
without autocomplete()
method it works like a charm and stores the data. But I have really big amount of data in User table and that's why need to use autocomplete in order to load only small amount of data.
Using autocomplete()
with AssociationField
giving following error and giving validation error on a form submit:
The choices 123, 2323 do not exist in the choice list.
123, 2323 are IDs of the selected users.
Has anybody faced such a problem?