« Return to Thread: DBIC register_source causing wierd Cat error?

Re: DBIC register_source causing wierd Cat error?

by Caroline Johnston :: Rate this Message:

Reply to Author | View in Thread

OK, so I think I've worked out the cause:
in the class_mappings:
                                       
'ROME::Model::ROMEDB::FactorExperiment' => 'FactorExperiment',
'ROME::Model::ROMEDB::Factor' => 'Factor',
'ROME::Model::ROMEDB::FactorByUser' => 'FactorByUser',

BUT

'ROMEDB::Factor' => 'FactorByUser',

If I do:

$c->model->result_source->schema->class_mappings->{'ROMEDB::Factor'} =
'Factor';
$c->model->result_source->schema->class_mappings->{'ROMEDB::FactorByUser'}
= 'FactorByUser';

Then everything works as expected. Is there a non-hacky way to tell
Catalyst to set up the class_mappings like this?

thanks!

Cxx


_______________________________________________
List: Catalyst@...
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@.../
Dev site: http://dev.catalyst.perl.org/

 « Return to Thread: DBIC register_source causing wierd Cat error?

LightInTheBox - Buy quality products at wholesale price!