[Dbix-class] Tracking "parent" resultset.

Rob Kinyon rob.kinyon at gmail.com
Mon May 17 13:05:57 GMT 2010


On Sun, May 16, 2010 at 21:22, Bill Moseley <moseley at hank.org> wrote:
>> Just keep track of it on your own using an array. :)
>
> By that do you mean this?
> $new_rs = $rs->search( { active => 1 } );
> push @saved_rs, { comment => 'Foo not active', rs => $rs };

my @conditions = (
    { col1 => $val1 },
    { col2 => $val2 },
);

my $rs = model('table');
push @rses, $rs = $rs->search( $_ ) for @conditions;

Or something.

Rob



More information about the DBIx-Class mailing list