Re: [Maypole] "Description" as table column

From: Simon Flack (sf at flacks.net)
Date: Fri Jan 14 2005 - 16:40:50 GMT


Ian Carruthers wrote:
> Hi,
>
> Just spent a long time figuring out a bug in my maypole app,
> No errors printed, just straight failing,
> It appears the problem is with using "Description" as a column name in
> one of my tables,
> The problem dissapears when the column name is changed,
>
> Anyone know why this is happening?
> thanks.
> p.s. I am using oracle, & rolling my own Class::DBI modules.

The model class has a conflicting 'description' method which is called
when when your templates are rendered. I'm planning on releasing a
Maypole 2.07 this weekend with a fix for this and some other small
issues that arose with 2.0[56].

Until then, you can either change the column name or change the accessor
name that Class::DBI sets up for your 'description' column. See
L<Class::DBI/"Changing Your Column Accessor Method Names">

--simon

_______________________________________________
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:57 GMT