-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
FormGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Unconfirmed
Description
Hi.
Here is my form ProductType and this is how I use it in action.
I expect it to render available categories in choice list, but it renders text field for category, I read the doc, and this article, and tried the same, but all I get is a text field for category.
It renders available categories in choice list only if I remove getDefaultOptions() from ProductType and explicitly pass Product as a second parameter to $this->createForm(), but I guess that is not the right way to do it.
Metadata
Metadata
Assignees
Labels
FormGood first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)Unconfirmed