[Dbix-class] Getting all relations of a table

Renee Bäcker mailinglisten at renee-baecker.de
Thu May 14 16:36:29 GMT 2009


Hi *,

can I do something like this:

package MySchema::Table;

# ...

__PACKAGE__->has_many( 'relationname' => ... );

---

use MySchema::Table;

my @relations = MySchema::Table->get_relations; # 'relationname'



- Renée


-- 

Perl-Magazin: http://perl-magazin.de
Perl-Nachrichten: http://perl-nachrichten.de



More information about the DBIx-Class mailing list