[CDBI] IsA correction

Kate Yoak kate at yoak.com
Fri Sep 9 05:56:17 BST 2005

>From the documentation:

Music::Artist->columns(All => qw/artistid alias/);
Music::Person->columns(Primary => qw/personid/);
Music::Artist->has_many(cds => 'Music::CD');
Music::Artist->is_a(person => 'Person');

In practice, that code does not work.  It will demand a valid column like

   my $column = $class->find_column(shift)
      or return $class->_croak("is_a needs a valid column");

As far as I can tell, just a documentation bug.

There are a couple of other minor issues:
1.  IsA unlike the other relationships requires the the class using that
relationship to "use" the foreign class.
2.  It complains about search_where being redefined if AbstractSearch is
already in use.


Not complaining.  :-)  Just sharing my notes.

More information about the ClassDBI mailing list