Rose::DB::Object::Metadata::Relationship::OneToMany - One to many table relationship metadata object.
use Rose::DB::Object::Metadata::Relationship::OneToMany; $rel = Rose::DB::Object::Metadata::Relationship::OneToMany->new(...); $rel->make_method(...); ...
Objects of this class store and manipulate metadata for relationships in which a single row from one table refers to multiple rows in another table.
This class inherits from Rose::DB::Object::Metadata::Relationship. Inherited methods that are not overridden will not be documented a second time here. See the Rose::DB::Object::Metadata::Relationship documentation for more information.
If passed a local column name LOCAL, return the corresponding column name in the foreign table. If passed both a local column name LOCAL and a foreign column name FOREIGN, set the local/foreign mapping and return the foreign column name.
Get or set a reference to a hash that maps local column names to foreign column names.
Returns Rose::DB::Object::MakeMethods::Generic.
Returns objects_by_key.
objects_by_key
Returns "one to many".
John C. Siracusa (siracusa@mindspring.com)
Copyright (c) 2005 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Rose::DB::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rose::DB::Object
CPAN shell
perl -MCPAN -e shell install Rose::DB::Object
For more information on module installation, please visit the detailed CPAN module installation guide.