Re: Quick $obj->delete qn where obj has multiple primary keys

[prev] [thread] [next] [Date index for 2005/07/01]

From: Tony Bowden
Subject: Re: Quick $obj->delete qn where obj has multiple primary keys
Date: 07:15 on 01 Jul 2005
On Fri, Jul 01, 2005 at 04:58:40PM +1000, Andrew O'Brien wrote:
> The only difference is that I have changed the string overloading on the
> Actor and Film classes to be a nicer "name" field like so:
> __PACKAGE__->columns (Stringify => qw/name/);
> Would this be an example of the bad things described in the note at the
> bottom of the has_a() section: "Note: You should not attempt to make
> your primary key column inflate using has_a as bad things will happen"?

Yes. 

> I'm guessing at this point that I either:
>  1. Change things in my application to call my own stringification
>     method rather than relying on a modified override and proceed
>     as normal.
>  Or
>  2. Have my own manipulation methods in all my link classes to do
>     operations like delete.

Or

3. Upgrade to 0.99 which has fixed this problem.

Thanks,

Tony

Re: Quick $obj->delete qn where obj has multiple primary keys
Tony Bowden 07:15 on 01 Jul 2005

Generated at 16:37 on 28 Jul 2005 by mariachi v0.52