>>>>> "John" == John Siracusa <[EMAIL PROTECTED]> writes:

John> On 9/8/06 11:17 PM, Clayton Scott wrote:
>> sub plural_to_singular { $_[1] }
>> sub singular_to_plural { $_[1] }

John> I'm not sure what you're aiming for with that bit, but it's what's causing
John> the conflict (albeit in a roundabout way).  If you just want the table 
names
John> to be singular, set the tables_are_singular() convention manager attribute
John> to true.  (This attribute was added recently, so upgrade if you don't have
John> the latest RDBO version.)  You can do this in a CM subclass by overriding
John> tables_are_singular() to always return true, or you can do it right from 
the
John> loader with no custom CM class at all:

John>   $loader = Rose::DB::Object::Loader->new(...);
John>   $loader->convention_manager->tables_are_singular(1);
John>   $loader->make_classes;

And thanks for that... apparently I'm not the only one with singular
tables. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to