I have a form that affects multiple models, but when a model fails validation I want to send error messages to the form.
If I create a form like this " this-> Form-> create ( context)" works, how can I pass multiple contexts so that my form shows me all errors from all models?
As far as I know, Forms can only have one context.
Typically, multiple models are sent to a form in an entity that resulted from a ‘contain’ query. If your models can be pulled together through an association, then you’re golden.