Re: [Dbix-class] as_query() and DBIx::Class::Cursor::Cached aren't friends

2009-06-08 Thread Peter Rabbitson
Rob Kinyon wrote: On Sun, Jun 7, 2009 at 20:36, Peter Rabbitson rabbit+d...@rabbit.us wrote: The fix should be quite simple, i.e. move as_query out of the Cursor class. But first I'd like someone to comment on why it ended up there in the first place. The only thing that has a query is the

Re: [Dbix-class] as_query() and DBIx::Class::Cursor::Cached aren't friends

2009-06-08 Thread Rob Kinyon
If it passes all the tests, that's fine. But, the cursor knows more than the resultset because the resultset isn't a query - it's a set of potential conditions that could become an UPDATE, DELETE, or SELECT. Rob On Mon, Jun 8, 2009 at 05:39, Peter Rabbitson rabbit+d...@rabbit.us wrote: Rob

Re: [Dbix-class] as_query() and DBIx::Class::Cursor::Cached aren't friends

2009-06-08 Thread Matt S Trout
On Sun, Jun 07, 2009 at 09:09:28PM -0400, Rob Kinyon wrote: On Sun, Jun 7, 2009 at 20:36, Peter Rabbitson rabbit+d...@rabbit.us wrote: The fix should be quite simple, i.e. move as_query out of the Cursor class. But first I'd like someone to comment on why it ended up there in the first

Re: [Dbix-class] as_query() and DBIx::Class::Cursor::Cached aren't friends

2009-06-07 Thread Peter Rabbitson
Aran Deltac wrote: 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