Skip to content
This repository was 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

@vekakela

Description

@vekakela

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));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions