On 6/1/06, Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> is there a way for me to do this without using a manager class method
> to retrieve an array and just address element 0?  or must i handle
> this as an array?

You mean something like this?

    $o = My::Object->new(id => 100)->load(with => 'type.category');

where you can then say:

    $cat_name = $o->type->category->name;

and it won't hit the db again.  Or maybe I'm misunderstanding what you
want?  Can you give a code example of what you're trying to do?

-John


_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to