How do I make this work?
$stuff = ORM::factory('mytable') ->with('user') ->with('other_stuff') ->find_all();
I have all my relationships and everything works when I make other requests. However, in the above query, it does not join the user table with mytable . I think it could be because there can be many users for one mytable.
There is a method in the link called join() , which, I think, I may need to use here, but it does not provide any information about this, and the material that I searched from above does not work here.
When I try to use join instead of with , it tries to join the table, but it does not contain any join information, just gives an empty () .
I know that my relationship with ORM DB is set up correctly, so I'm a bit puzzled.
source share