Closed fritzmg closed 5 years ago
Looks good to me. @aschempp @Toflar
Technically one could have models without a DCA, couldn't they?
Maybe yeah
I have added additional checks.
Thank you @fritzmg, I have just released 4.24.0 so you can update your deps.
I have a DCA with a
pid
relation to a parent table. I am usingaddFieldsFromDca
ofHaste\Form\Form
to render form fields of the DCA fields in the front end. However, one of those fields has anoptions_callback
where, depending on thepid
, different options are shown to the user.I still need this callback in the front end, as I want to show the user the correct options. However, no
DataContainer
will be passed to that callback in the front end.Similar to the
save_callback
, we could pass a mock DCA object here as well, when there is a model binding present. What do you think?