|
Re: questions about the manager vs the standard object: msg#00010lang.perl.modules.dbi.rose-db-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> |
|---|---|---|
| Previous by Date: | questions about the manager vs the standard object, Jonathan Vanasco |
|---|---|
| Next by Date: | Re: questions about the manager, John Siracusa |
| Previous by Thread: | questions about the manager vs the standard object, Jonathan Vanasco |
| Next by Thread: | use sql functions in inserts and selects, Ask Bjørn Hansen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |