Assuming you’re auto deriving the form; it doesn’t work in this case because it’s going through a generic action which has no manage_relationship that could be picked up. Hence the error, and the solution is to manually configure the nested forms, i.e. manually initialize the form and be explicit in what you want:
AshPhoenix.Form.for_action(Sales.Invoice, :complete_issue,
forms: [
items: [
type: :list,
resource: Sales.InvoiceItem,
create_action: :create
]
]
)
When
AshPhoenix.Form.params/1is called on submit, it collects all nested item params and assembles them under the"items"key, which gets passed as theitemsargument tocomplete_issue— and from there into your Reactor.






















