- or download this
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite:
+:st execute failed: FOREIGN KEY constraint failed [for Statement "DEL
+ETE FROM member WHERE ( id = ? )" with ParamValues: 1=6] at /home/mar
+k/80-004 Test/script/../lib/Test/Controller/Member/Manage.pm line 91
- or download this
my $member_obj = $c->model('DB::Member')->find({ id => $member_id });
$member_obj->delete;
- or download this
package Test::Schema::Result::Member;
. . .
__PACKAGE__->add_columns(
...
on_update => "NO ACTION",
},
);
- or download this
package Test::Schema::Result::User;
...
{ "foreign.user_id" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
- or download this
CREATE TABLE member (
id INTEGER PRIMARY KEY,
...
id INTEGER PRIMARY KEY,
username TEXT
);