Re: self join on table

[prev] [thread] [next] [Date index for 2004/06/26]

From: steve shapero
Subject: Re: self join on table
Date: 00:51 on 26 Jun 2004
ah.  duh...
that worked...

On Jun 25, 2004, at 5:12 PM, Tony Bowden wrote:

> On Fri, Jun 25, 2004 at 12:37:12PM -0700, steve shapero wrote:
>> __PACKAGE__->has_a(parentgenreid => 'SDMS::Genre' => 'parentgenreid');
>> Odd number of elements in hash assignment at
>> /usr/lib/perl5/site_perl/5.8.1/Class/DBI/Relationship/HasA.pm line 16.
>
> The normal has_a() only takes two arguments - method/column name =>
> Class.  If there are more complex rules to inflate, then they come next
> as a hash. It never takes 3 args.
>
> You just want:
>  __PACKAGE__->has_a(parentgenreid => 'SDMS::Genre');
>
> Tony

self join on table
steve shapero 19:37 on 25 Jun 2004

Re: self join on table
Tony Bowden 00:12 on 26 Jun 2004

Re: self join on table
steve shapero 00:51 on 26 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52