my $barneys = $c->model('DB::Person')->search({name => 'barney'});

instead of

  my $schema = $c->model('DB');
  my $barnes = $schema->resultset('Person')->search({name => 'barney'});

And I don't think Model::DBIC::Schema pays attention to the default_model
setting.


He can use the default_model setting and use
$c->model->resultset('Person') to get the Person resultset.

--
Jonas

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

Reply via email to