[RDBO] multi-relationship sort-order

2007-03-08 Thread Uwe Voelker
Hello, when doing this: (with_objects = [qw(rel_A rel_A.rel_B)], sort_order = 'rel_A.rel_B.field DESC' ) Rose dies with: DBD::mysql::st execute failed: Unknown table 't2.t3' in order clause at /opt/perl/perl-5.8.8/lib/site_perl/5.8.8/Rose/DB/Object/Manager.pm line 1737. It does work with

[RDBO] auto_prime_caches, or common custom Metadata

2007-03-08 Thread Michael Reece
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)

Re: [RDBO] auto_prime_caches, or common custom Metadata

2007-03-08 Thread Michael Reece
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?

Re: [RDBO] auto_prime_caches, or common custom Metadata

2007-03-08 Thread John Siracusa
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

Re: [RDBO] auto_prime_caches, or common custom Metadata

2007-03-08 Thread John Siracusa
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 -