Re: Code generator

[prev] [thread] [next] [Date index for 2005/07/22]

From: Sebastian Riedel
Subject: Re: Code generator
Date: 17:12 on 22 Jul 2005
Am 22.07.2005 um 16:03 schrieb justine.brassard@xxxxxxxxxxx.xx:

> Hi there, I'm currently doing a code generator for Class::DBI with  
> 2 files for every table a base (wich is not editable) and a non- 
> base where we can add methods.
>
> Unfortunately, dealing with the relationship is a bit tricky with  
> that and the only solution I found to have the has_many  
> relationship to work properly is to use the ancien way to do it  
> with the third argument.
>
> __PACKAGE__->has_many(accessor_name,remote_package_name =>  
> 'remote_package_PK');
>
> Before going further with that, I have to know if  this way to use  
> 'has_many' will always be supported?

Maybe you should take a look at Class::DBI::Loader and  
Catalyst::Helper::Model::CDBI.


--
sebastian

Code generator
justine.brassard 14:03 on 22 Jul 2005

Re: Code generator
Sebastian Riedel 17:12 on 22 Jul 2005

Re: Re: Code generator
justine.brassard 19:18 on 25 Jul 2005

Re: Re: Code generator
Peter Speltz 21:58 on 25 Jul 2005

Re: Re: Code generator
Tony Bowden 22:03 on 25 Jul 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52