Re: Problems with delete

[prev] [thread] [next] [Date index for 2004/12/14]

From: Perrin Harkins
Subject: Re: Problems with delete
Date: 21:06 on 14 Dec 2004
On Tue, 2004-12-14 at 12:38 +0100, JJ Merelo wrote:
> And I don't seem to be doing
> anything special, other than the fact that the 'rol' class does not
> have a primary key

There's no such thing as not having a primary key in Class::DBI.

> __PACKAGE__->table('rol');
> __PACKAGE__->columns( Essential => qw( persona_id simposio_codigo rol_tipo) );

This code says that "persona_id" is your primary key.  If that's not
correct, you'd better declare your primary key explicitly.

> __PACKAGE__->has_a( persona_id => 'My::CEDI::Persona' );

This might cause problems, since it's a has_a() on your primary key.

- Perrin

Problems with delete
JJ Merelo 11:38 on 14 Dec 2004

Re: Problems with delete
Perrin Harkins 21:06 on 14 Dec 2004

Re: Problems with delete
JJ Merelo 14:44 on 22 Feb 2005

Generated at 11:30 on 23 Feb 2005 by mariachi v0.52