-
Notifications
You must be signed in to change notification settings - Fork 11
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
Bind multiple fields to a single model method #50
Comments
possible solution could look like this: class OrderType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
// ...
->add('shippingAddress', AddressType::class, [
'write_property_path' => 'ship',
'argument_name' => 'address'
])
->add('trackingNumber', TextType::class, [
'write_property_path' => 'ship',
]); grouped by |
|
3 tasks
WIP PR is ready to be reviewed at #56 |
implemented in #56 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a model that has a setter-method with two or more arguments
what is the best solution to this problem without changing the model to use a value object or something? is there already a good solution or do we need to come up with an idea?
The text was updated successfully, but these errors were encountered: