Re: self join on table
[prev]
[thread]
[next]
[Date index for 2004/06/26]
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