The Perl Advent Calendar needs more articles for 2022. Submit your idea today!


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


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



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?