On 11/28/05 12:16 PM, "John Siracusa" <[EMAIL PROTECTED]> wrote:
> On 11/28/05, Sean Davis <[EMAIL PROTECTED]> wrote: >> My::DB::GMain is the class name, so I expected gmains. In practice, I >> looked a the loader code and it is using the ACTUAL table name > > Yeah, hm, I've changed my mind a bit. How about this instead of the > method I describe din my last email: > > --- > > =item B<auto_manager_base_name TABLE, CLASS> > > Given a table name and the name of the L<Rose::DB::Object>-derived > class that fronts it, return a base name suitable for use as the value > of the C<base_name> parameter to L<Rose::DB::Object::Manager>'s > L<make_manager_methods|Rose::DB::Object::Manager/make_manager_methods> > method. The default implementation simply returns the table name. > > --- > > That seems more flexible. John, It does seem more flexible. Is there a reason not to make the default the pluralized base name rather than the table name, since we are talking objects of class "prefix.basename"? Sean ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Rose-db-object mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rose-db-object
