[CDBI] IsA correction

[prev] [thread] [next] [Date index for 2005/09/09]

From: Kate Yoak
Subject: [CDBI] IsA correction
Date: 04:56 on 09 Sep 2005
>From the documentation:

Music::Artist->table('artist');
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
so:

   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.



_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] IsA correction
Kate Yoak 04:56 on 09 Sep 2005

Re: [CDBI] IsA correction
Matt S Trout 05:14 on 09 Sep 2005

RE: [CDBI] IsA correction
Kate Yoak 23:56 on 09 Sep 2005

Generated at 23:46 on 13 Sep 2005 by mariachi v0.52