[Catalyst] Adding relationships to loaded CDBI models
Andy Grundman
andy at hybridized.org
Sat Jun 18 17:29:22 CEST 2005
James Tolley wrote:
> Hello,
>
> It's auspiciously coincidental that this discussion started just now,
> because I've been dealing with trying to get mysql relationships loaded
> automatically. I was frustrated with the options available and so I wrote
> and just released Class::DBI::Loader::mysql::Grok to the CPAN.h
You could also change your tables to InnoDB and define foreign keys.
Then use the newest Class::DBI::Loader (only in trunk at the moment) and
it'll load them all for you.
http://dev.catalyst.perl.org/browser/trunk/Class-DBI-Loader/
-Andy
More information about the Catalyst
mailing list