From: David Kamholz Date: Tue, 24 Jan 2006 21:11:12 +0000 (+0000) Subject: fix select attr docs X-Git-Tag: v0.05005~115 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cf7b40ed1094687b34099700994c63c53636ebde;p=dbsrgits%2FDBIx-Class.git fix select attr docs --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 176d20c..bb3d37b 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -537,7 +537,7 @@ sub create { $class->find_or_create({ key => $val, ... }); Searches for a record matching the search condition; if it doesn't find one, -creates one and returns that instead. +creates one and returns that instead. my $cd = $schema->resultset('CD')->find_or_create({ cdid => 5, @@ -664,11 +664,11 @@ names: $rs = $schema->resultset('Foo')->search( {}, { - select => { + select => [ 'column_name', { count => 'column_to_count' }, { sum => 'column_to_sum' } - } + ] } ); @@ -685,10 +685,10 @@ procedure names: $rs = $schema->resultset('Foo')->search( {}, { - select => { + select => [ 'column1', { count => 'column2' } - }, + ], as => [qw/ column1 column2_count /] } );