Fix CookBook example until the rsrc refactor (RT#77910)
Peter Rabbitson [Sat, 3 Nov 2012 16:18:54 +0000 (17:18 +0100)]
lib/DBIx/Class/Manual/Cookbook.pod

index c91208c..bec5a96 100644 (file)
@@ -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);