From: Arthur Axel 'fREW' Schmidt Date: Fri, 4 Jun 2010 04:22:20 +0000 (-0500) Subject: lots of little tweaks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2Fdbix-class-introduction-presentation.git;a=commitdiff_plain;h=01b7b88c2ee630666e2c1c48cec69017f72e24b0 lots of little tweaks --- diff --git a/slideshow.html b/slideshow.html index f94f148..4213975 100644 --- a/slideshow.html +++ b/slideshow.html @@ -174,16 +174,6 @@
-

books table

-
CREATE TABLE books(
-   id        int(8) primary key auto_increment,
-   title     varchar(255),
-   author_id int(8),foreign key (author)
-      references authors(id)
-) engine = InnoDB DEFAULT CHARSET=utf8;
-
- -

CRUD compared

@@ -815,7 +814,7 @@ __PACKAGE__->config( ); 1; -

Keep your Schema in a separate package to your Catalyst application

+

Keep your Schema in a separate package from your Catalyst application

@@ -823,8 +822,8 @@ __PACKAGE__->config(
sub action_name : Local {
   my ($self, $c) = @_;
 
-  my $model = $c->model('Schema::Foo');
-  my $author_model = $model->resultset('Authors');
+  my $schema = $c->model('Schema::Foo');
+  my $author_rs = $schema->resultset('Authors');
 
 }