Hi, I am sorry for so many questions but some points in the documentation are unclear for me.
In your documentations for
BelongsTo
you provide an examle forOrder
class. But in your demo you don't use this method forOrder
class. So – my questions are - why don't you use it and when should I use it?Let's for exanmple I have a table
Foo
that has relattions with the tableUsers
(Foo
has 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 tableUsers
in my application - just want to have possibility to select Users for my tableFoo
. Do I have to create theResource
class for tableUsers
in this case.You use the method
query
in your realisztion of theOrder
class. I did not find any description for this method in the documentation forResource
. Could you explain the usage of the methodquery
in more details inResource
context?