[Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread Jarom Smith
Sorry, one more question (and this one does have to do with Catalyst more than DBIC, I think...) Is there any magical invocation for the create script which will make a bunch of stub ResultSet classes for me, similar to how the Result classes are auto-generated when I do script/myapp_create.

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread J. Shirley
On Wed, May 27, 2009 at 5:31 PM, Jarom Smith wrote: > Sorry, one more question (and this one does have to do with Catalyst more > than DBIC, I think...) > > Is there any magical invocation for the create script which will make a > bunch of stub ResultSet classes for me, similar to how the Result

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread Jarom Smith
Yes, I was thinking a very simple stub ResultSet class for every Result source. Something like: package MyApp::Schema::ResultSet::MyTable; use strict; use warnings; use base 'DBIx::Class::ResultSet'; # example #sub get_by_id { # my $self = shift; # my $id = shift; # # retur

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-27 Thread J. Shirley
On Wed, May 27, 2009 at 6:52 PM, Jarom Smith wrote: > Yes, I was thinking a very simple stub ResultSet class for every Result > source. Something like: > > package MyApp::Schema::ResultSet::MyTable; > > use strict; > use warnings; > > use base 'DBIx::Class::ResultSet'; > > # example > #sub get_b

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-29 Thread Jarom Smith
J. Shirley wrote: Catalyst::Helper::Model::DBIC::Schema doesn't do that, but you could submit a patch :) I know, I need to contribute as well as take away. If I were to do this, I think I would probably just extend the current auto-generation mechanism that creates stuff in the Result direc

Re: [Catalyst] auto-generate ResultSet classes?

2009-05-30 Thread Tomas Doran
On 29 May 2009, at 19:38, Jarom Smith wrote: J. Shirley wrote: Catalyst::Helper::Model::DBIC::Schema doesn't do that, but you could submit a patch :) I know, I need to contribute as well as take away. If I were to do this, I think I would probably just extend the current auto-generatio