[CDBI] Examining classes

Carlos Vicente cvicente at network-services.uoregon.edu
Wed Nov 15 16:59:56 GMT 2006


> Given a CDBI class, is there an easy way to find out what relationships
> it has? For example, can I determine that class A might_have a class B?
> 

There is an undocumented meta_info method that returns information about
relationships.  It returns a reference to a hash.

e.g.   my $m = MyClass->meta_info();

cv



More information about the ClassDBI mailing list