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.
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
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
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
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
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