mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-16 03:48:24 +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 | ||
AclNodeTest.php | ||
BehaviorCollectionTest.php | ||
CakeSchemaTest.php | ||
ConnectionManagerTest.php | ||
ModelCrossSchemaHabtmTest.php | ||
ModelDeleteTest.php | ||
ModelIntegrationTest.php | ||
ModelReadTest.php | ||
models.php | ||
ModelTest.php | ||
ModelTestBase.php | ||
ModelValidationTest.php | ||
ModelWriteTest.php |