| 1 | package DBIx::Class::Helper::Row::CleanResultSet; | ||
| 2 | 54 | $DBIx::Class::Helper::Row::CleanResultSet::VERSION = '2.032002'; | |
| 3 | # ABSTRACT: Get an unfiltered ResultSet from the row | ||
| 4 | |||
| 5 | 54 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 54 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 54 | ▶ | use parent 'DBIx::Class::Row'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 1 | ▶ | sub clean_rs { return shift->result_source->resultset } |
|
Subroutine
clean_rs: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | |||
| 12 | 54 | 1; | |
| 13 | |||
| 14 | __END__ | ||
| 15 | |||
| 16 | =pod | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | DBIx::Class::Helper::Row::CleanResultSet - Get an unfiltered ResultSet from the row | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | In result class: | ||
| 25 | |||
| 26 | __PACKAGE__->load_components('Helper::Row::CleanResultSet'); | ||
| 27 | |||
| 28 | Elsewhere: | ||
| 29 | |||
| 30 | $row->clean_rs->$some_rs_method | ||
| 31 | |||
| 32 | similar to: | ||
| 33 | |||
| 34 | $row->result_source->resultset->$some_rs_method | ||
| 35 | |||
| 36 | =head1 DESCRIPTION | ||
| 37 | |||
| 38 | Sometimes 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 | |||
| 48 | Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> | ||
| 49 | |||
| 50 | =head1 COPYRIGHT AND LICENSE | ||
| 51 | |||
| 52 | This software is copyright (c) 2016 by Arthur Axel "fREW" Schmidt. | ||
| 53 | |||
| 54 | This is free software; you can redistribute it and/or modify it under | ||
| 55 | the same terms as the Perl 5 programming language system itself. | ||
| 56 | |||
| 57 | =cut | ||