[Maypole] Maypole::Plugin::Relationships and YAML
Dana Hudes
dhudes@hudes.org
Wed, 2 Feb 2005 13:04:08 -0500 (EST)
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.