On Feb 21, 2007, at 3:10, Adrian Howard wrote: > Rose::DB::Object::Loader->new( > db => MyApp::DB->new, > class_prefix => 'MyApp' > )->make_classes( > pre_init_hook => sub { > my $meta = shift; > $meta->column( 'some_column' )->alias( '_some_column' ) > if $meta->table eq 'some_table'; > } > );
Another option (unless I misunderstood the question) is to make a convention manager with a method like this: sub auto_relationship_name_one_to_many { my ($self, $table, $class) = @_; if ($self->meta->table eq 'some_table') { return "_some_column" if $table eq 'some_column'; } $self->SUPER::auto_relationship_name_one_to_many($table, $class); } - ask -- http://develooper.com/ - http://askask.com/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object