From: Bruno Vecchi Date: Fri, 11 Sep 2009 23:25:12 +0000 (+0000) Subject: Update DBIx::Class::Manual::Example.pod to reflect previous changes in examples/Schem... X-Git-Tag: v0.08112~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0f330864a4306946f0acd20fe841b95b45d30667;hp=771298cf23765eb1651a11b47650fdf387c29d45;p=dbsrgits%2FDBIx-Class.git Update DBIx::Class::Manual::Example.pod to reflect previous changes in examples/Schema/insertdb.pl --- diff --git a/lib/DBIx/Class/Manual/Example.pod b/lib/DBIx/Class/Manual/Example.pod index 71b0e29..5d8980f 100644 --- a/lib/DBIx/Class/Manual/Example.pod +++ b/lib/DBIx/Class/Manual/Example.pod @@ -155,10 +155,10 @@ insertdb.pl my @cds; foreach my $lp (keys %albums) { - my $artist = $schema->resultset('Artist')->search({ + my $artist = $schema->resultset('Artist')->find({ name => $albums{$lp} }); - push @cds, [$lp, $artist->first]; + push @cds, [$lp, $artist->id]; } $schema->populate('Cd', [ @@ -179,10 +179,10 @@ insertdb.pl my @tracks; foreach my $track (keys %tracks) { - my $cdname = $schema->resultset('Cd')->search({ + my $cdname = $schema->resultset('Cd')->find({ title => $tracks{$track}, }); - push @tracks, [$cdname->first, $track]; + push @tracks, [$cdname->id, $track]; } $schema->populate('Track',[