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

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Fri Feb 11 2005 - 10:11:37 GMT


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

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:58 GMT