> $foo->bar->foo; # bam, circular reference, memory leak
Yep.
That is exactly why I wanted the objects not to store refs to each other but
only hold ids (i.e. primary keys). If I now had an OR-mapper like Class::DBI I
could then use it to get a ref to the SAME object whenever I need it.
Evide
2009/5/2 Matt S Trout
> On Fri, May 01, 2009 at 04:19:32PM -0700, Morgon Hed wrote:
> > What I want is a way to "lazily" only load those objects from the
> database that are actually needed to process a message and so ideally I
> would like each object to be able to get a ref to another in a unif
On Fri, May 01, 2009 at 04:19:32PM -0700, Morgon Hed wrote:
>
> << Manage the scoping yourself
>
> Hmmm.
>
> First of all many thanks for your reply.
>
> What I want is a way to "lazily" only load those objects from the database
> that are actually needed to process a message and so ideally I