Hi!
$prod= Model_Product::find("all", array('related' => array('group')));
$prod = Model_Product::find("all")->related('group')->get();
The first one is working, the second one not.
Could you help?
Thanks
If you pass a param to find() it will be executed immidiately and you can't call related() on the result of an executed find() (either an array or an individual Model instance). Only if you don't give any params to find() will you be able to chain off of it because then it'll return an Orm\Query object which does have a related() method.