1package DBIx::Class::Helper::Row::CleanResultSet; 2$DBIx::Class::Helper::Row::CleanResultSet::VERSION = '2.036000'; 3# ABSTRACT: Get an unfiltered ResultSet from the row 4 5use strict; 6use warnings; 7 8use parent 'DBIx::Class::Row'; 9 10sub clean_rs { return shift->result_source->resultset } 11 121; 13 14__END__ 15 16=pod 17 18=head1 NAME 19 20DBIx::Class::Helper::Row::CleanResultSet - Get an unfiltered ResultSet from the row 21 22=head1 SYNOPSIS 23 24In result class: 25 26 __PACKAGE__->load_components('Helper::Row::CleanResultSet'); 27 28Elsewhere: 29 30 $row->clean_rs->$some_rs_method 31 32similar to: 33 34 $row->result_source->resultset->$some_rs_method 35 36=head1 DESCRIPTION 37 38Sometimes you need to be able to access the ResultSet containing all rows. 39 40=head1 METHODS 41 42=head2 clean_rs 43 44 $row->clean_rs 45 46=head1 AUTHOR 47 48Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> 49 50=head1 COPYRIGHT AND LICENSE 51 52This software is copyright (c) 2020 by Arthur Axel "fREW" Schmidt. 53 54This is free software; you can redistribute it and/or modify it under 55the same terms as the Perl 5 programming language system itself. 56 57=cut 58