Re: [RDBO] how to pluralize properly with Rose::DB::Object::Loader?

2007-12-21 Thread John Siracusa
On 12/21/07 8:39 PM, Adam Prime wrote: > sub init_convention_manager { > my $self = shift; > > my $cm = $self->SUPER::init_convention_manager(@_); > > $cm->singular_to_plural_function(\&Lingua::EN::Inflect::Number::to_PL); > $cm->plural_to_singular_function(\&Lingua::EN::Infle

Re: [RDBO] how to pluralize properly with Rose::DB::Object::Loader?

2007-12-21 Thread Adam Prime
Ted Zlatanov wrote: > I couldn't find an example in the docs of how to set up > Rose::DB::Object::Loader with a properly pluralizing convention manager. > I tried the following, but I keep getting a class called "Currencie" > from a table called "currencies" for example. I must be missing > someth

Re: [RDBO] matching databases with class hierarchies

2007-12-21 Thread Darren Duncan
At 6:20 PM -0500 12/21/07, John Siracusa wrote: >On 12/21/07 3:43 PM, Ted Zlatanov wrote: >> I've set up all the right things in a Rose::DB class to support this. >> Now I find myself with the need for four class hierarchies to handle >> slightly different things in those four environments. Ins

Re: [RDBO] On load/insert/update/delete triggers?

2007-12-21 Thread John Siracusa
On 12/18/07 1:38 AM, Danny Liang wrote: > Is it possible to add triggers/coderef callbacks to > load/insert/update/delete methods for objects and get_* methods for > object manager classes similar to the way adding trigger to columns > (i.e. on_set, on_save, etc.)? There are no convenience methods

Re: [RDBO] matching databases with class hierarchies

2007-12-21 Thread John Siracusa
On 12/21/07 3:43 PM, Ted Zlatanov wrote: > I've set up all the right things in a Rose::DB class to support this. > Now I find myself with the need for four class hierarchies to handle > slightly different things in those four environments. Instead, I'm > wondering if I can have: > > DB/auto/prod/

Re: [RDBO] how to pluralize properly with Rose::DB::Object::Loader?

2007-12-21 Thread John Siracusa
On 12/21/07 4:21 PM, Ted Zlatanov wrote: > On Fri, 21 Dec 2007 15:59:58 -0500 Hans Dieter Pearcey <[EMAIL PROTECTED]> > wrote: > HDP> On Fri, Dec 21, 2007 at 02:56:07PM -0600, Ted Zlatanov wrote: >>> I couldn't find an example in the docs of how to set up >>> Rose::DB::Object::Loader with a proper

Re: [RDBO] how to pluralize properly with Rose::DB::Object::Loader?

2007-12-21 Thread Ted Zlatanov
On Fri, 21 Dec 2007 15:59:58 -0500 Hans Dieter Pearcey <[EMAIL PROTECTED]> wrote: HDP> On Fri, Dec 21, 2007 at 02:56:07PM -0600, Ted Zlatanov wrote: >> I couldn't find an example in the docs of how to set up >> Rose::DB::Object::Loader with a properly pluralizing convention manager. >> I tried t

Re: [RDBO] how to pluralize properly with Rose::DB::Object::Loader?

2007-12-21 Thread Hans Dieter Pearcey
On Fri, Dec 21, 2007 at 02:56:07PM -0600, Ted Zlatanov wrote: > I couldn't find an example in the docs of how to set up > Rose::DB::Object::Loader with a properly pluralizing convention manager. > I tried the following, but I keep getting a class called "Currencie" > from a table called "currencies

[RDBO] how to pluralize properly with Rose::DB::Object::Loader?

2007-12-21 Thread Ted Zlatanov
I couldn't find an example in the docs of how to set up Rose::DB::Object::Loader with a properly pluralizing convention manager. I tried the following, but I keep getting a class called "Currencie" from a table called "currencies" for example. I must be missing something. Ted package My::DB::Met

[RDBO] matching databases with class hierarchies

2007-12-21 Thread Ted Zlatanov
Let's say I have two DB domains: prod/dev and two DB types: a/b. All four combinations have 99% of the same data structure but need different login info and some slightly different fields (e.g. the table 'cats' in dev-a has an extra timestamp column). I've set up all the right things in a Rose::D