[Catalyst] $c->model weirdness?
Alex Povolotsky
tarkhil at over.ru
Sat Mar 1 18:46:16 GMT 2008
Alex Povolotsky wrote:
> Hello!
>
> I've created the DBIC model with helper script, all files are in place
> and seems to be OK.
>
> However,
>
> my $model = $c->model('TrafficDB::Server');
> my $traffic = $c->model('TrafficDB::DailySummary');
> .....
> $c->log->info(ref $me);
> $c->log->info(ref $traffic);
>
> yields
>
> [info] Traffic2::M::TrafficDB::Server
> [info] DBIx::Class::ResultSet
>
> So sub's defined in DailySummary.pm are not loaded.
>
> I have no idea on what can be wrong :( maybe someone will point me?
Well, I should look better. $model->find() returns
Traffic2::M::TrafficDB::Server. Sorry.
Alex.
More information about the Catalyst
mailing list