From: Peter Rabbitson Date: Sat, 3 Nov 2012 16:18:54 +0000 (+0100) Subject: Fix CookBook example until the rsrc refactor (RT#77910) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e5900efe56229710a8e23898b97eaaceab94abec;p=dbsrgits%2FDBIx-Class-Historic.git Fix CookBook example until the rsrc refactor (RT#77910) --- diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index c91208c..bec5a96 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -117,7 +117,12 @@ almost like you would define a regular ResultSource. __PACKAGE__->table_class('DBIx::Class::ResultSource::View'); - # ->table, ->add_columns, etc. + # For the time being this is necessary even for virtual views + __PACKAGE__->table($view_name); + + # + # ->add_columns, etc. + # # do not attempt to deploy() this view __PACKAGE__->result_source_instance->is_virtual(1);