| 1 | package DBIx::Class::Helper::ResultSet::Shortcut::ResultsExist; | ||
| 2 | 55 | $DBIx::Class::Helper::ResultSet::Shortcut::ResultsExist::VERSION = '2.033001'; | |
| 3 | 55 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 55 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 55 | ▶ | use parent 'DBIx::Class::ResultSet'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | sub results_exist { | ||
| 9 | 2 | ▶ | my $self = shift; |
|
Subroutine
results_exist: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 10 | |||
| 11 | 2 | $self | |
| 12 | ->result_source | ||
| 13 | ->resultset | ||
| 14 | ->search({ -exists => $self->as_query }) | ||
| 15 | ->first | ||
| 16 | } | ||
| 17 | |||
| 18 | 55 | 1; | |
| 19 | |||
| 20 | __END__ | ||
| 21 | |||
| 22 | =pod | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | DBIx::Class::Helper::ResultSet::Shortcut::ResultsExist | ||
| 27 | |||
| 28 | =head1 AUTHOR | ||
| 29 | |||
| 30 | Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> | ||
| 31 | |||
| 32 | =head1 COPYRIGHT AND LICENSE | ||
| 33 | |||
| 34 | This software is copyright (c) 2016 by Arthur Axel "fREW" Schmidt. | ||
| 35 | |||
| 36 | This is free software; you can redistribute it and/or modify it under | ||
| 37 | the same terms as the Perl 5 programming language system itself. | ||
| 38 | |||
| 39 | =cut | ||