[Dbix-class] Restricting Result Sets

Bruno brunorc at gmail.com
Fri Nov 7 16:43:08 GMT 2008


2008/11/6 Ovid <publiustemp-dbic at yahoo.com>:
> This is the correct behavior, but we'd like to be able to create a resultset with a filter applied which represents what we really have.  Something like:
>
>  my $new_rs = $rs->filter( sub { defined $_->inflate_entity  } );

Sorry if this sounds stupid, but how about returning in list context
then grep { defined $_->inflate_entity } ?

Regards, Bruno



More information about the DBIx-Class mailing list