Skip to content

[Autocomplete] Fails to load provided options if multiple=true on submit #493

Closed
@norkunas

Description

@norkunas

The problem is in these lines:

$options['choices'] = $options['em']->getRepository($options['class'])->findBy([
$options['id_reader']->getIdField() => $data['autocomplete'],
]);

Doctrine entity repository findBy method doesn't support finding entities by array so it always returns empty array.
Okay it supports, but only when using plain ID's, but doesn't support when using ID value objects like Symfony uid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions