Closed
Description
bind
ing partial parameters effectively clears all existing values from the model and only persists the new parameters that are passed in. See example:
// Author.php
class Author
{
public $name;
public $email = 'bar';
}
// AuthorType
...
$builder->add('name', 'text')->author('text');
...
Passing $form->bind(array('name' => 'foo'))
wipes out the existing email
value.