Rose::DB::Object::Metadata::ForeignKey is a foreign key metadata class.
$fk = Rose::DB::Object::Metadata::ForeignKey->new(...);
Objects of this class store and manipulate metadata for foreign keys in a database table. It stores information about which columns in the local table map to which columns in the foreign table.
This class will create methods for the thing referenced by the foreign key column(s). You'll still need accessor method(s) for the foreign key column(s) themselves.
Both the local table and the foreign table must have Rose::DB::Object-derived classes fronting them.
Foreign keys can represent both "one to one" and "many to one" relationships. To choose, set the relationship_type attribute to either "one to one" or "many to one". The default is "many to one".