Re: [Maypole] Re: has_many() problems
[prev]
[thread]
[next]
[Date index for 2005/05/19]
----- Original Message -----
From: Perrin Harkins <perrin@xxxx.xxx>
To: Will Hawes <info@xxxxxx.xx.xx>
Cc: maypole-users@xxxxx.xxxxxxxxxxx.xxx, cdbi-talk@xxxxxx.xxxxx.xxx
Sent: Thu, 19 May 2005 14:41:41 +0100
Subject: [Maypole] Re: has_many() problems
> On Thu, 2005-05-19 at 11:46 +0100, Will Hawes wrote:
> > package MyApp::Entity;
> > __PACKAGE__->has_many(products => 'MyApp::Product');
>
> If you make that
> __PACKAGE__->has_many(products => 'MyApp::Product', 'supplier');
> the problem will go away.
>
> - Perrin
Doh. Never underestimate the power of the simple solution :)
Thanks
WH