1DBIx::Class::Helper::ReUssuelrtSCeoDtnB:tI:rxIi:gb:nuCotlreaedsWsaP:ne:trHalerlrDpaoeycr(u:3m:)eRnetsautlitoSnet::IgnoreWantarray(3)
2
3
4

NAME

6       DBIx::Class::Helper::ResultSet::IgnoreWantarray - Get rid of search
7       context issues
8

SYNOPSIS

10        package MyApp::Schema::ResultSet::Foo;
11
12        __PACKAGE__->load_components(qw{Helper::ResultSet::IgnoreWantarray});
13
14        ...
15
16        1;
17
18       And then else where, like in a controller:
19
20        my $rs = $self->paginate(
21          $schema->resultset('Foo')->search({
22             name => 'frew'
23          })
24        );
25

DESCRIPTION

27       This component makes search always return a ResultSet, instead of
28       returning an array of your database in array context. See "NOTE" in
29       DBIx::Class::Helper::ResultSet for a nice way to apply it to your
30       entire schema.
31

METHODS

33   search
34       Override of the default search method to force it to return a
35       ResultSet.
36

AUTHOR

38       Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
39
41       This software is copyright (c) 2020 by Arthur Axel "fREW" Schmidt.
42
43       This is free software; you can redistribute it and/or modify it under
44       the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.32.1                DBIx::2C0l2a1s-s0:1:-H2e7lper::ResultSet::IgnoreWantarray(3)
Impressum