Skip to content

[Form] Autocomplete contains services, not form fields #603

Closed
@lovenunu

Description

@lovenunu

Hi,

when in a controller, when I try to do:

$form->get('foo_field')->getData();

get's autocomplete method gives me my container's services, not the form fields. Moreover, it gives me Method 'getData' not found in class ... as get's return type is not FormInterface.
I think it's a confusion between form and controller's get method: when I try to ctrl+click on the method, the helper says Multiple implementations.

I'm using 0.11.98 and phpstorm 9.0.2

Oh, and thank you very much for all your work on this module !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions