cakephp2-php8/lib/Cake/Test/Case/Model
Haithem BEN GHORBAL 31615ce415 add 'atomic' option to "save()" API
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.
2014-06-03 09:37:17 +02:00
..
Behavior Merge branch 'master' into 2.5 2014-04-06 21:50:41 +02:00
Datasource Merge branch 'master' into 2.5 2014-05-04 14:35:36 +05:30
Validator Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
AclNodeTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
BehaviorCollectionTest.php more missing doc block tags added 2014-04-02 03:02:37 +02:00
CakeSchemaTest.php Merge branch 'master' into 2.5 2013-11-19 00:27:12 +05:30
ConnectionManagerTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
ModelCrossSchemaHabtmTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
ModelDeleteTest.php Fix verification of expected invocations #2919 2014-03-01 19:06:17 +01:00
ModelIntegrationTest.php Merge branch 'master' into 2.5 2014-04-06 21:50:41 +02:00
ModelReadTest.php Merge branch 'master' into 2.5 2014-04-06 21:50:41 +02:00
models.php microptimize options and default merge and other string key array merges 2014-04-08 01:25:14 +02:00
ModelTest.php Removed "PHP 5" from file header DocBlocks 2013-11-13 22:58:39 +01:00
ModelTestBase.php Merge pull request #2350 from tuffz/formatting_app_uses_blocks 2013-12-14 12:37:02 -08:00
ModelValidationTest.php replaces validator 'between' with 'lengthBetween' 2014-05-13 10:46:25 +02:00
ModelWriteTest.php add 'atomic' option to "save()" API 2014-06-03 09:37:17 +02:00