From: "Rodney Broom" <[EMAIL PROTECTED]>
> From: "Yuval Kogman" <[EMAIL PROTECTED]>
> Where is it being required()'d?
Catalyst::Model::DBIC::Schema::new()
$schema_class->require
> Why not just 'use' this at the top of your model code?
Initially, because that isn't how the C::M::DBIC::Schema docs said to do it.
> Now, at this stage there's some heavy wheel reinvention going on.
> Are you aware of Catalyst::Model::DBIC::Schema?
Heh, yes, my model:
package MyApp::Model::Main;
use base qw(Catalyst::Model::DBIC::Schema);
__PACKAGE__->config(
schema_class => 'MyApp::Schema::Main'
);
> > Under Catalyst, I get all classes. Outside of Catalyst (scripts) I
> > tend to only use what I need:
> Is this for efficiency reasons?
Yes. Am I missing something in relation to avoiding loading 50+ modules when I
only need one?
---
Rodney Broom
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/