On 20/07/11 07:25, Alejandro Imass wrote: > > http://wiki.catalystframework.org/wiki/best_practices/models_definitive_guide >
In this example package Models::Model::HomeGrownModel; use base 'Catalyst::Model'; use HomeGrown; sub COMPONENT { my ( $self, $app ) = @_; my $dbic_schema = $app->model('ModelsDB')->schema; return HomeGrown->new( schema => $dbic_schema ); } how are you ensuring 'ModelsDB' has been instantiated before 'HomeGrownModel'? -- Regards _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/