Brian Duggan > Rose-Planter-0.34 > Rose::Planter::ConventionManager

Download:
Rose-Planter-0.34.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Rose-Planter-0.36

NAME ^

Rose::Planter::ConventionManager - some handy convention defaults

DESCRIPTION ^

This is a subclass of Rose::DB::Object::ConventionManager with a few tweaks.

METHODS ^

auto_relationship_name_one_to_many

By default if "foo_params" is a child of a table "foo", we remove the the "foo_" portion from "foo_params".

i.e. If this table has only _one_ foreign key and the table name referred to in the foreign key is a prefix of this table name plus an underscore, then remove the table name and the underscore. Got it?

syntax highlighting: