Re: implied foreign keys
[prev]
[thread]
[next]
[Date index for 2004/10/01]
On Fri, Oct 01, 2004 at 01:09:56PM -0400, William McKee wrote:
> it seems that some references[1,2] consider a foreign key to
> point to a primary key; others[3] are saying that a foreign key could
> point to a non-PK field as you are doing. Does anyone know if there a
> definitive answer?
Well, as the OP wanted the latter, then I guess that's your answer :)
Either way, Class::DBI is unlikely to support this natively, as I don't
believe it's very common. But it shouldn't be too difficult to write a
standalone Relationship plugin that DTRT here.
Tony