-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Symfony 3 - Collection, how to hide widget when ArrayCollection is empty #18804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@4Dr3N4L1N3 can you provide the code of your form? From the example maybe that helps you already:
|
Explicitly mark the field as rendered:
|
Will be fixed by #17609, but I don't know if I can finish it before the feature freeze at the end of the week... |
Hey, thanks for your report! |
Could I get a reply or should I close this? |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I use a collection type in a form, my problem is that widgets of the collection are always added to view.
I try to test with twig that the array is empty to hide widgets but that's not fix the problem.
The text was updated successfully, but these errors were encountered: