my $dbh isn't available at the time that mod_perl starts up. after a
couple hours of debugging, i figured out that i need to pass
auto_prime_caches = 0,
to __PACKAGE__-meta-setup(...)
however, i have a lot of classes. is there a way to add this
behavior (or other similar metadata)
here's what i came up with:
in package My::RDBO::_base,
sub meta_class { 'My::RDBO::_meta' }
and then,
package My::RDBO::_meta;
use base 'Rose::DB::Object::Metadata';
sub auto_prime_caches { 0 }
1;
is this the expected way to do this sort of thing?
On 3/8/07 7:33 PM, Michael Reece wrote:
here's what i came up with:
in package My::RDBO::_base,
sub meta_class { 'My::RDBO::_meta' }
and then,
package My::RDBO::_meta;
use base 'Rose::DB::Object::Metadata';
sub auto_prime_caches { 0 }
is this the expected way to do this sort of
On 3/8/07 9:44 PM, [EMAIL PROTECTED] wrote:
that's all fine and good until i create a table called 'metadata'. :)
Distinct namespaces will avoid that. No need for name mangling. Example:
My::DBObject - common base class
My::DBObject::Metadata - custom metadata class
My::DB::Foo -