-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
test for ensuring creating form returns data of type specified in data_c... #3383
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
Conversation
|
This is expected. You return |
|
oh but that empty_data is new right? that is a BC On Thu, Feb 16, 2012 at 3:57 PM, Christophe Coevoet <
|
|
@stof If I comment the method getParent I get Symfony\Component\Form\Exception\FormException: Could not load type "form" |
|
@cordoval you need to register the other form types in the FormFactory to be able to use them. And empty_data is not new. And the fact that you don't inherit the behavior from FieldType when you don't mark it as parent is not new either (you don't inherit the rendering either btw) |
|
I believe this is a BC break - I had some code using the collection field that was working fine in SF 2.0, when I ported to SF 2.1 it broke. I resolved the issue by setting the The current documentation still states that it is correct to use the |
|
@web-dev there is indeed an issue in the current refactoring (I opened a tocket for it). But this test is not the right one to demonstrate it as the case presented in the test is expected to fail for the empty data as it simply does not have a way to trigger the logic of the FieldType |
|
Can we close this PR then? |
|
It appears there is an issue here, my custom collection based FormTypes are no longer working (returning arrays instead of the class specified by data_class that is defined in the getDefaultOptions() array). @stof what issue are you referring to? I cant seem to find it. |
|
@stof's issue overlaps with my problem so this can be closed (afaik) |
...lass