morgon has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a question about DBIx::Class.
Assume I have a resultset with moniker 'Hubba' and I do the following:
So retrieving twice the same row with primary key 1 I get two different instances describing the same physical row.my $h1 = $schema->resultset('Hubba')->find(1); my $h2 = $schema->resultset('Hubba')->find(1);
Is there a way to use DBIx::Class in such a way that I would get back the same instance in case as above?
Many thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: object identity in DBIx::Class
by spx2 (Deacon) on Apr 24, 2009 at 14:50 UTC | |
by perrin (Chancellor) on Apr 24, 2009 at 15:17 UTC | |
by spx2 (Deacon) on Apr 24, 2009 at 15:27 UTC | |
by morgon (Priest) on Apr 25, 2009 at 19:21 UTC | |
Re: object identity in DBIx::Class
by castaway (Parson) on Apr 25, 2009 at 21:36 UTC |
Back to
Seekers of Perl Wisdom