Re: [Dbix-class] Designing a system with DBIx::Class

2009-05-02 Thread Morgon Hed
> $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

Re: [Dbix-class] Designing a system with DBIx::Class

2009-05-02 Thread Peter Edwards
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

Re: [Dbix-class] Designing a system with DBIx::Class

2009-05-02 Thread Matt S Trout
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