Describe the bug
Currently when you try to use the Entity filter on nested associations you'll get:
An error has occurred resolving the options of the form "Symfony\Bridge\Doctrine\Form\Type\EntityType": The required option "class" is missing.
This was partially fixed by #7295 though like I pointed out in there it breaks the Configurator.
With the new association filter changes I'm not sure how compatible that PR is though cause there seem to be conflicts.
To Reproduce
class Foo {
#[OneToMany(targetEntity: Bar::class)]
private Bar $bar;
}
class Bar {
#[OneToMany(targetEntity: Baz::class)]
private Baz $bar;
}
class Baz {
#[Column]
private string $name;
}
In the Foo Crud Controller configure the filter like:
public function configureFilters(Filters $filters): Filters
{
return $filters->add(EntityFilter::new('bar.baz', 'Baz'))
}
(OPTIONAL) Additional context
If they are useful, include logs, code samples, screenshots, etc.
Describe the bug
Currently when you try to use the Entity filter on nested associations you'll get:
This was partially fixed by #7295 though like I pointed out in there it breaks the Configurator.
With the new association filter changes I'm not sure how compatible that PR is though cause there seem to be conflicts.
To Reproduce
In the Foo Crud Controller configure the filter like:
(OPTIONAL) Additional context
If they are useful, include logs, code samples, screenshots, etc.