[Dbix-class] as_query() and DBIx::Class::Cursor::Cached aren't
friends
Aran Deltac
aran at arandeltac.com
Fri Jun 5 18:18:39 GMT 2009
Just recently I upgraded DBIx::Class from 0.08010 to 0.08103 and am
getting errors about as_query() and DBIx::Class::Cursor::Cached.
Here's what the error is:
Couldn't render component "/earnings_history/earnings_history.mhtml" -
error was "Can't locate object method "as_query" via package
"DBIx::Class::Cursor::Cached" at
/vcm/home/lib/site_perl/DBIx/Class/ResultSet.pm line 2006, <DATA> line
228.
Stack:
[/vcm/home/lib/site_perl/DBIx/Class/ResultSet.pm:2006]
[/vcm/home/lib/site_perl/DBIx/Class/ResultSet.pm:1199]
[/vcm/home/lib/site_perl/DBIx/Class/ResultSet.pm:1170]
[/vcm/home/component/ui/mason/pub/earnings_history/earnings_history.mhtml:12]
[/vcm/home/component/ui/mason/pub/autohandler:83]
[/vcm/home/component/ui/mason/shared/setup.cmp:10]"
Line 12 of earnings_history.mhtml is this:
% my $perc = sprintf("%.1f", 100 / ($media_types->count()+3) );
So, somehow a simple ->count() on a cached resultset causes the latest
DBIC to use as_query, which DBIx::Class::Cursor::Cached.
Any thoughts? Easy fix? Need any more details?
Thanks,
Aran
More information about the DBIx-Class
mailing list