Revision history for DBIx::Class
-
+ - delete throws exception if passed arguments to prevent drunken mishaps. (purge)
- Fix storage to copy scalar conds before regexping to avoid
trying to modify a constant in odd edge cases
- Related resultsets on uninserted objects are now empty
sub delete {
my ($self) = @_;
-
+ $self->throw_exception("Delete should not be passed any arguments")
+ if $_[1];
my $cond = $self->_cond_for_update_delete;
$self->result_source->storage->delete($self->result_source, $cond);