Subject: | Docs bug: Arbitrary SQL through a custom ResultSource |
The code example under Arbitrary SQL through custom ResultSource is missing a line needed
to make it work:
https://metacpan.org/module/DBIx::Class::Manual::Cookbook#Arbitrary-SQL-through-a-
custom-ResultSource
The line is shown in the SYNOPSIS here:
https://metacpan.org/module/DBIx::Class::ResultSource::View
The missing line is:
__PACKAGE__->table('year2000cds');
(or equivalent). Without that line the "result_source_instance" accessor is not available, so you
will get an exception:
Can't locate object method "result_source_instance"...
I suggest also that a note should be added to the DBIx::Class::ResultSource::View
documentation explaining the need for this call.