[eluser]BrianDHall[/eluser]
Pardon me if this is a silly question, but consider this:
$user->usergroup->get();
So you get the usergroup that the user belongs to - simple. But where the hell is the usergroup object?
If I do:
$usergroup = $user->usergroup;
...that works, and $usergroup is now my usergroup object. When I use my debugger to look into the $user object, there is no sign of usergroup anywhere in it, nor in any other variable I can seem to locate.
If I want to peek into the structure of such a related object, do I need to assign it to a variable before I'll be able to see it, or am I just missing where it might be hiding?
EDIT: The point of this is mainly for debugging purposes, and technically I'm trying to hand off one of my Datamapper objects in a way friendly to the CI Template parser, since it isn't capable of understanding object properties or array elements. So I want to use my debugger to peek and make sure I'm doing this in the most logical way, and it's hard when the object in question can't be found.