Subject: | invalid resultset when generating schema is out of scope |
Hi,
Something seems to have changed between 0.06002 and 0.06003. Previously
I had been writing code like this:
sub foo {
my $schema = My::DB->connect( 'dbi:SQLite:foo.db' );
return $schema->resultset('Baz')->search;
}
my $rs = foo();
This no longer seems to work in 0.06003. I get error messages like this
Can't call method "storage" on an undefined value at
/usr/lib/perl5/site_perl/5.8.8/DBIx/Class/ResultSource.pm line 304
The problem seems to be that ResultSets no longer work properly if the
schema that generated them has gone out of scope. This wasn't the case
in 0.06002
Thanks,
Ben