Leser: 1
7 Einträge, 1 Seite |
INSERT INTO books (rating, title) VALUES (?, ?)' (`2', `Perl fÃ&¼r Dummies')
__PACKAGE__->load_components(qw/PK::Auto Core/);
1
2
3
4
my $book = $c->model('MyAppDB::Book')->create({
title => $title,
rating => $rating
});
1
2
3
use base qw/DBIx::Class/;
# Load required DBIC stuff
__PACKAGE__->load_components(qw/PK::Auto Core/);
Caught exception in MyApp::Controller::Books->form_create_do "DBIx::Class::ResultSet::create(): Error executing 'INSERT INTO books (rating, title) VALUES (?, ?)' (`5', `Perl In A Nutshell'): Duplicate entry '0' for key 1
Coldn't render template "file error - books/form_create_do: not found"
$c->stash->{template} = 'books/create_done.tt2';
7 Einträge, 1 Seite |