Subject: | Support for 'accessor' needed |
Hi,
I just installed C::P::AutoCRUD with my Catalyst Application 5.804.
It just works like a charm to display tables available in your schema
plugged with DBIx::Class.
However, I get an error thrown by Catalyst while attempting to display
values from a table 'Organism'. In the definition of my table, I created
'accessor' to access column as (from DBname::Organism):
....
"shortspecies",
{
data_type => "varchar",
default_value => undef,
is_nullable => 0,
size => 32,
accessor => "shortname",
},
...
Then when pointing to localhost:3000/autocrud/dbname/organism
the display is empty and I get this error from Catalyst :
[Tue May 19 10:19:09 2009] [error] Caught exception in
BiblioList::Controller::AutoCRUD::AJAX->list "Can't locate object method
"shortspecies" via package "BiblioList::Model::BiblioListDB::Organism"
at
/usr/local/share/perl/5.10.0/Catalyst/Plugin/AutoCRUD/Controller/AJAX.pm
line 161.
It looks like accessor is not check while attempting to display certain
columns data.
I tested with another table without 'accessor' and it works fine.
Could you add this support?
Anyway thanks for this great tool!!! :)
Regards
Emmanuel