[Maypole] Class::DBI->set() called with broke stuff

Dave Howorth dhoworth@mrc-lmb.cam.ac.uk
Fri, 11 Feb 2005 10:11:37 +0000


Christopher Hicks wrote:
> I've been trying to get Maypole to work this table "contact":

> The pager column seems to be causing the problem.  I've tried with the 
> pager column in and out of printable columns and the results are the 
> same. The Class::DBI->set() seems to be getting called with wacky 

Maypole::Model::CDBI uses Class::DBI::Pager, which defines a pager 
method in your model classes. So you can't have a column called pager 
unless you do something different.

The simplest thing to do is change the name of your column. If you can 
live with that, I'd definitely recommend you to do that. If not, you 
need to investigate Class::DBI::accessor_name to change the column's 
accessor name or else change the way paging is done in your model. I 
expect either of those routes will cause you some pain along the way!

Cheers, Dave