Re: Problems with delete
[prev]
[thread]
[next]
[Date index for 2004/12/14]
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
|
|
Re: Problems with delete
Perrin Harkins 21:06 on 14 Dec 2004
|