On Sun, May 16, 2010 at 21:22, Bill Moseley <[email protected]> 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
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]