Quoting Tobias Kremer <[EMAIL PROTECTED]>:
> AFAICT, MyApp::Model::Schema class would be a good place to issue a
> $schema->default_resultset_attributes( { cache_object ... } ) call
> which is needed by DBIx::Class::Cursor::Cached. Is there an easy way to
> access $schema from within MyApp::Model::Schema?
Realizing that MyApp::Model::Schema is already just a subclass of
C::M::DBIC::Schema (doh!) I came up with the following solution that just
overrides new():
sub new {
my $self = shift->NEXT::new(@_);
$self->schema->default_resultset_attributes( { ... } );
return $self;
}
--Tobias
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/