Re: Lazy population of has_a child records

[prev] [thread] [next] [Date index for 2005/06/08]

From: Christopher Laco
Subject: Re: Lazy population of has_a child records
Date: 12:52 on 08 Jun 2005
On 6/8/05, Christopher Laco <mendlefarg@xxxxx.xxx> wrote:
> On 6/8/05, Tony Bowden <tony-cdbitalk@xxxxx.xxx> wrote:
> > On Tue, Jun 07, 2005 at 10:36:16PM -0400, Christopher Laco wrote:
> > >     while (my $item =3D $items->next) {
> > >         my %copy =3D %{$item};
> >
> > Regardless of what the problem is with what you're doing, don't do
> > that. This will break even more in later releases.
> >
> > Use the low level accessors to get at the data; don't just assume
> > they're stored in the hash of the object like that, as they won't be in
> > future.
> >
> > Tony
> >
> Wow, that's a tough one though. That's an easyt or for an item that
> has 5 columns, but that really sucks on something like the Order class
> where there is a good 40 columns.

God forbid I don't use the technology at hand. Just loop through
Essential and run those through object->$column. Drrrrrr. :-)

Lazy population of has_a child records
Christopher Laco 02:36 on 08 Jun 2005

Re: Lazy population of has_a child records
Perrin Harkins 04:06 on 08 Jun 2005

Re: Lazy population of has_a child records
Peter Speltz 04:10 on 08 Jun 2005

Re: Lazy population of has_a child records
Tony Bowden 08:29 on 08 Jun 2005

Re: Lazy population of has_a child records
Christopher Laco 12:40 on 08 Jun 2005

Re: Lazy population of has_a child records
Christopher Laco 12:52 on 08 Jun 2005

Re: Lazy population of has_a child records
merlyn (Randal L. Schwartz) 16:24 on 08 Jun 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52