[CDBI] Re: delete on table with multiple pks

Matt S Trout dbix-class at trout.me.uk
Mon Nov 28 15:06:22 GMT 2005

On Sun, Nov 27, 2005 at 11:47:23PM -0600, Peter Speltz wrote:
> On 11/26/05, Matt S Trout <dbix-class at trout.me.uk> wrote:
> > On Sun, Nov 27, 2005 at 12:29:36AM +0000, William Ross wrote:
> > > by the way, are you inflating either of the key columns with a has_a
> > > relationship? that's not allowed.
> >
> > Works fine in DBIx::Class including under CDBICompat. Has anybody ever figured
> > out why Class::DBI can't handle this properly?
> >
> Are you saying inflating key columns works fine in DBIx::Class?

Absolutely. See


for the tests for this against native DBIx::Class where the SelfRefAlias
class has both parts of its primary key inflated to different objects.

     Matt S Trout       Specialists in Perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

More information about the ClassDBI mailing list