logo       

Re: questions about the manager vs the standard object: msg#00010

lang.perl.modules.dbi.rose-db-object

Subject: Re: questions about the manager vs the standard object

On 6/1/06, Jonathan Vanasco <rosedb-GYD5gbT+W3w@xxxxxxxxxxxxxxxx> 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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise