Skip to content

[Form] Entity field in from null after request #2861

@phpeek

Description

@phpeek

I have an entities that look like this:

class Customer
{
private $id;

 private $name;

 private $contact_user;

 private $new_contact_user;

}

class User
{
private $id;

 private $name;

}

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions