X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FData%2FCollection%2FSet.pm;fp=lib%2FDBIx%2FData%2FCollection%2FSet.pm;h=7e71b8ee99b7c3c22581ad984e49fb3b1b0e686e;hb=48d91d77fd61a1d85e35901cc4d101b5066c8544;hp=4d902940dc85104be248745422f5a90539f5f528;hpb=c51eabc5e365e02962c64af5f1fe21dd342a53bc;p=dbsrgits%2FDBIx-Data-Store-old.git diff --git a/lib/DBIx/Data/Collection/Set.pm b/lib/DBIx/Data/Collection/Set.pm index 4d90294..7e71b8e 100644 --- a/lib/DBIx/Data/Collection/Set.pm +++ b/lib/DBIx/Data/Collection/Set.pm @@ -155,7 +155,7 @@ method remove ($old) { } method _remove_from_store ($old) { - $self->_store->new_delete_command($self->_deflate($old))->execute; + $self->_store->new_delete_command($self->_deflate($old))->execute } method _remove_from_caches ($old) { @@ -164,4 +164,13 @@ method _remove_from_caches ($old) { $old } +## update + +method _update_in_store ($obj) { + # this is currently a call command but we should think about it + # being a row command so that we can have RETURNING or other + # mechanisms handle things like set-on-update datetime values + $self->_store->new_update_command($self->_deflate($obj))->execute +} + 1;