Subject: | Can not update_or_create |
line: 370
$DBIC->resultset( $table )->update_or_create( $row, { key => 'primary' } );
Cause next error:
bless({
msg => "DBIx::Class::ResultSource::_minimal_valueset_satisfying_constraint(): Unable to satisfy requested constraint 'primary', missing values for column(s): 'id' at /home/feelsafe/public_html/www/autohandler line 370\n",
}, "DBIx::Class::Exception")
This behaviour is unexpected
Because of when I do not supply 'id' (values for primary key fields) I expect find will FAIL and new row is created
EXPECTED:
new row is created when no value for primary key field