Hi, I am sorry for so many questions but some points in the documentation are unclear for me.
In your documentations for
BelongsToyou provide an examle forOrderclass. But in your demo you don't use this method forOrderclass. So – my questions are - why don't you use it and when should I use it?Let's for exanmple I have a table
Foothat has relattions with the tableUsers(Foohas foreign key referred to primary key of the tableUsers–Foo.user_id ->Users.id). I don't need to show or edit or manage any way the tableUsersin my application - just want to have possibility to select Users for my tableFoo. Do I have to create theResourceclass for tableUsersin this case.You use the method
queryin your realisztion of theOrderclass. I did not find any description for this method in the documentation forResource. Could you explain the usage of the methodqueryin more details inResourcecontext?