Re: Code generator
[prev]
[thread]
[next]
[Date index for 2005/07/22]
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
|
|
Re: Code generator
Sebastian Riedel 17:12 on 22 Jul 2005
|