Closed sashaaro closed 3 years ago
I run into the same problem, so I can at least approve, that it still exists.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I run into the same problem, so I can at least approve, that it still exists.
Hi @Metabor. Did you tried the last version ? Is it still here ? What is the errors you get ? Do you have a repo to reproduce this ? I'll be happy to take a look if so.
I just tried and it works fine for me
With the following config
Environment
Sonata packages
Symfony packages
PHP version
Subject
Sonata\AdminBundle\Form\Type\ModelAutocompleteType not work correct with filter Sonata\DoctrineORMAdminBundle\Filter\CallbackFilter I want Autocomplete filter of releted entity filed. In my exmaple. Teacher's name autocomplete and then search student by reletion. My conclusion CallbackFilter can't work correct with formtype ModelAutocompleteType
Steps to reproduce
I can't set correct options for right work. I try many variants of settings and it always it throws exception. I start doubt about can it work correct together.
Expected results
CallbackFilter work with ModelAutocompleteType. I can found teachers from Autocomplete and then apply filter for student searching by related field
Actual results
When I start seach in autocomplete I recived for example throw exception No associated entity with field "teacher".