Re: [Maypole] Maypole::Plugin::Relationships and YAML

From: Dana Hudes (dhudes at hudes.org)
Date: Wed Feb 02 2005 - 18:04:08 GMT


On Wed, 2 Feb 2005, Sebastian Riedel wrote:

> Tony Bowden:
> > I think I'm missing something here. There seems to be this idea that
> > Maypole (and / or Class::DBI) wants the primary key to be called 'id'.
> > Is this actually true? It certainly isn't true for Class::DBI.
> >
>
> Seems only Maypole's factory templates expect id.
>

As Tony points out, CDBI makes an alias called 'id' -- in CDBI, not SQL
it doesn't touch your schema -- for your PK no matter what you call it.
So long as Maypole doesn't go generating SQL on its own, relying instead
on CDBI, this should not pose a conflict.

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:58 GMT