You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Form connected with Customer has a field $new_contact_user of type UserType. Adding new contact user to customer is not required during adding or updating Customer. Whenever i leave UserType form blank i'm getting $new_contact_user as User entity filled with null values. How can I check if UserType form fields were left with blank during request ?
The text was updated successfully, but these errors were encountered:
Commits
-------
bd461e2 [Form] Forms now don't create empty objects anymore if they are completely empty and not required. The empty data for these forms is null.
Discussion
----------
[Form] Forms now don't create empty objects anymore if they are empty and not required
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: #2861
Todo: -

If a form (or a nested form) is left completely empty upon submission and is not required, no new data object will be generated anymore. Instead, the form returns null as data.
I have an entities that look like this:
class Customer
{
private $id;
}
class User
{
private $id;
}
Form connected with Customer has a field $new_contact_user of type UserType. Adding new contact user to customer is not required during adding or updating Customer. Whenever i leave UserType form blank i'm getting $new_contact_user as User entity filled with null values. How can I check if UserType form fields were left with blank during request ?
The text was updated successfully, but these errors were encountered: