Subject: | column name collision |
If a table as a column called 'source_name', everything gets totally
borked. Probably happens with other column names that collide with DBIC
methods also.
Absolutely execrable error message:
perl -I ~/cxgn/core/perllib ~/test.pl
DBIx::Class::Row::get_column(): Can't fetch data as class method at (eval
1038) line 6
Compilation failed in require at /crypt/rob/test.pl line 6.
BEGIN failed--compilation aborted at /crypt/rob/test.pl line 6.
Which when adding a croak() to the relevant place yields:
Can't fetch data as class method at /crypt/rob/cpan-
DBIx::Class::Row::get_column('SGN::Schema::DerivedFromSource',
'source_name') called at (eval 1038) line 6
SGN::Schema::DerivedFromSource::source_name('SGN::Schema::DerivedFromSourc
DBIx::Class::Schema::load_classes('SGN::Schema') called at
/crypt/rob/cxgn/core/perllib/SGN/Schema.pm line 8
require SGN/Schema.pm called at /crypt/rob/test.pl line 6
main::BEGIN() called at /crypt/rob/cxgn/core/perllib/SGN/Schema.pm
line 0
eval {...} called at /crypt/rob/cxgn/core/perllib/SGN/Schema.pm
line 0
Compilation failed in require at /crypt/rob/test.pl line 6.