1 package Reaction::InterfaceModel::Collection::DBIC::Role::Where;
4 use Scalar::Util qw/blessed/;
6 use namespace::clean -except => [ qw(meta) ];
9 #requires qw/_source_resultset _im_class/;
12 my $rs = $self->_source_resultset->search_rs(@_);
13 return (blessed $self)->new(
14 _source_resultset => $rs,
15 member_type => $self->member_type
20 my $rs = $self->_source_resultset->search_rs(@_);
21 $self->_source_resultset($rs);
22 $self->_clear_collection_store if $self->_has_collection_store;
26 #XXX may need a rename, but i needed this for ListView
29 $self->_source_resultset
30 ->search({},{result_class => $self->member_type})
39 Reaction::InterfaceModel::Collection::DBIC::Role::Where
43 Provides methods to allow a ResultSet collection to be restricted
49 Will return a clone with a restricted C<_source_resultset>.
53 Will return itself after restricting C<_source_resultset>. This also clears the
58 See L<Reaction::Class> for authors.
62 See L<Reaction::Class> for the license.