feat(grid): add default EnumFilter Twig template#331
Conversation
e5c036c to
6ce7b95
Compare
6ce7b95 to
9dbe792
Compare
535dbc5 to
3e7312c
Compare
3e7312c to
8d66713
Compare
8d66713 to
86ee4e2
Compare
config/packages/sylius_resource.yaml
Outdated
| app.book: | ||
| classes: | ||
| model: App\Entity\Book | ||
| form: App\Form\BookType |
There was a problem hiding this comment.
We do not need this, configure it on your Resource metadata.
There was a problem hiding this comment.
I already have the configuration on the Resource via the attribute (cf. app/Entity/Book.php line 36) but I need it here for Symfony 6.4 compatibility otherwise PHPUnit tests fail due to this error :
Caused by
ErrorException: An error occurred during rendering the "default" hook in the "sylius_admin.common.update.content.form.sections.general" hookable. An exception has been thrown during the rendering of a template ("Object of class App\Enum\BookCategory could not be converted to string") in "bootstrap_5_layout.html.twig" at line 338 in "bootstrap_5_layout.html.twig" at line 338.
vendor/symfony/twig-bridge/Resources/views/Form/bootstrap_5_layout.html.twig:338
tests/Functional/LegacyBookTest.php:65
86ee4e2 to
994f55c
Compare
|
Thx @stlgaits 🏅 |
Fixes #327
simple:

multiple:
