Subject: | Unclear: 'No such column' error |
DBIx::Class::Row::store_column(): No such column 'Details' on HyperMouse::Schema::Result::Operation at
This error occur when I update related table but occasionally data for relation is undef:
my $accounting = {
opdate => DateTime->now,
opername => 'Accounting',
comment => "For <date>",
Details => undef,
}
accounting->has_many( Details => ... );
I this this should be just ignored. because it is fine to create record at master table with no records for its detail table.
Or, maybe, just warn: Hey, dude. You have no data for your Detail table.