optional third argument for has_many

[prev] [thread] [next] [Date index for 2004/10/01]

From: Y00R0B0T
Subject: optional third argument for has_many
Date: 22:07 on 01 Oct 2004
the docs mention an optional third argument for the has_many method
(when you don't want to setup a circular relationship in your foreign
class with a has_a), but I can't seem to find an example of the
syntax...

I've seen other code posted on this list looking like this
__PACKAGE__->has_many(col_id=>'PACKAGE::NAME'=>other_col);  

I just don't understand how that is supposed to work ( lack of obtuse
perl knowledge is to blame? lack of obtuse perl knowledge is lame :)
can  that call also just be:
__PACKAGE__->has_many(col_id=>'PACK::NAME', 'other_col') ?

-thanks

optional third argument for has_many
Y00R0B0T 22:07 on 01 Oct 2004

Re: optional third argument for has_many
David Jack Olrik 06:17 on 02 Oct 2004

Re: optional third argument for has_many
Y00R0B0T 06:59 on 02 Oct 2004

Re: optional third argument for has_many
Tim Bunce 09:29 on 02 Oct 2004

Re: optional third argument for has_many
Simon Cozens 11:14 on 02 Oct 2004

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