Render data from two resources
Is there a way to render data in a form from two different resources (tables or models) without a relationship between them? Thanks
5 Replies
I don't think there is. The sole purpose of a resource is to represent a single Model and provide CRUD operations for it. If this is a must have in your case, first thing that comes to mind would be to have a view in your database that combines the two tables. This way you can have a model that represents the view and a resource for said model. You can always customize the create/update action of the form so you can split the form data into two separate models.
Thanks a lot. this gives me a derection where to go from here
If you hit a wall again, let me know. I'm sure we can figure it out. 👍
will do 🙂
For now, I'll mark this as solved