If your related model is in a different namespace, you have to define it in the relation fully namespaced, minus the leading backslash.
'model_to' => 'Module\\Model_Name',
If you want the see SQL being executed, you can activate the profiler (global setting in app/config/config.php, enable db profiling in your db.php).
If you want it in code, you can use the get_query() method at the end of the chain ( instead of get() or get_one() ).
very good
Thank you!
You know how to do "or where" in a related model?
I wanted to put a condition "where" the main model but "or_where" related to the same time ..
related => array ('or_where' ....) # does not work
As far as I can see in the code, conditions do not support 'or_where'. at the moment.
You can create a feature request for that if you want: https://github.com/fuel/orm/issues, no guarantees it will be picked up though.