Re: [CDBI] Examining classes

Carlos Vicente <cvicente-zZ82ZiX1S8l+u43qRgrggVnYRNhDb3e+9nwVQlTi/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.