[Catalyst] More natural access to model?
Paweł Tęcza
ptecza at uw.edu.pl
Tue May 12 11:33:01 GMT 2009
Kieren Diment pisze:
> On 12/05/2009, at 8:57 PM, Paweł Tęcza wrote:
>
>>
>> Do you know solution of that issue? Maybe I should define
>> subroutines in
>> MyApp::Schema::ResultSet::Studies module for all type of data?
>>
>
> Yes you should. That means that even though your code might be
> horrible, you can hide the implementation details from the web
> application portion of the code, and if you think about design
> properly up front, removing the horrible code later on should be
> pretty straightforward.
Hello Kieren,
Thank you very much for your response! Is it a way to autogenerate all
necessary subroutines in a loop or I need define all of them manually?
They should have very similar body :)
Cheers,
Pawel
More information about the Catalyst
mailing list