Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Soft delete does not support atomic option on CakePHP 2.6+ #142

Closed
vekakela opened this issue Jul 28, 2015 · 2 comments
Closed

Soft delete does not support atomic option on CakePHP 2.6+ #142

vekakela opened this issue Jul 28, 2015 · 2 comments
Labels

Comments

@vekakela
Copy link

CakePHP 2.6 added atomic option to the Model save -function. SoftDeleteBehavior should support this at least as an option, if people want to use transactions.

return $model->save(array($model->alias => $data), false, array_keys($data));

becomes:

return $model->save(array($model->alias => $data), array('validate' => false, 'fieldList' => array_keys($data), 'atomic' => false));
@Megslalk
Copy link

Hi!
we have seen your issue. It has been passed onto our development team who will be assisting you shortly.

@andrej-griniuk
Copy link
Collaborator

Hi @vekakela,

This has now been implemented as "atomic" setting for SoftDeleteBehavior and merged to develop branch.

Cheers,
Andrej

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants