Form Builder support for polymorphic relationships
I know you can create forms that perform CRUD operations on relationships by using
->relationship('<relationship property>')
, within Section, Group, etc.
However, I'm wondering what the cleanest approach would be to support polymorphic tables, where you'd need to be able to specify what the id
and type
field names are.1 Reply
Arrrgghh… it of course works perfectly if you actually point it at the correct relationship property that's set as
MorphOne
.