|
Lines 292-305
The autoload method is used call DBIx::Class method on a resultset.
Link Here
|
| 292 |
|
292 |
|
| 293 |
Important: If you plan to use one of the DBIx::Class methods you must provide |
293 |
Important: If you plan to use one of the DBIx::Class methods you must provide |
| 294 |
relevant tests in t/db_dependent/Koha/Objects.t |
294 |
relevant tests in t/db_dependent/Koha/Objects.t |
| 295 |
Currently count, pager, reset, update and delete are covered. |
295 |
Currently count, pager, update and delete are covered. |
| 296 |
|
296 |
|
| 297 |
=cut |
297 |
=cut |
| 298 |
|
298 |
|
| 299 |
sub AUTOLOAD { |
299 |
sub AUTOLOAD { |
| 300 |
my ( $self, @params ) = @_; |
300 |
my ( $self, @params ) = @_; |
| 301 |
|
301 |
|
| 302 |
my @known_methods = qw( count pager reset update delete result_class ); |
302 |
my @known_methods = qw( count pager update delete result_class ); |
| 303 |
my $method = our $AUTOLOAD; |
303 |
my $method = our $AUTOLOAD; |
| 304 |
$method =~ s/.*:://; |
304 |
$method =~ s/.*:://; |
| 305 |
|
305 |
|