mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
31615ce415
This commit adds a transaction context to 'save()' API in order to rollback possible modifications done in some 'Model.beforeSave' listener callback. This will allow cakephp 2.x to behave like 3.0 . It uses try/catch to better handle transaction. Previous save() API is renamed to protected _doSave() method. A new save() method is created for transaction handling. 'atomic' option is disabled for internal 'save()' call. |
||
---|---|---|
.. | ||
Behavior | ||
Datasource | ||
Validator | ||
AclNode.php | ||
Aco.php | ||
AcoAction.php | ||
Aro.php | ||
BehaviorCollection.php | ||
CakeSchema.php | ||
ConnectionManager.php | ||
I18nModel.php | ||
Model.php | ||
ModelBehavior.php | ||
ModelValidator.php | ||
Permission.php |