mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: get a object inside transaction block will alway exist
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@101592 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3dfeb93a78
commit
b73ffd5f47
@ -68,10 +68,8 @@ class TransactionTest extends SapphireTest {
|
|||||||
DB::getConn()->transactionRollback();
|
DB::getConn()->transactionRollback();
|
||||||
}
|
}
|
||||||
|
|
||||||
$success=DataObject::get('Page', "\"Title\"='Read only success'");
|
|
||||||
|
|
||||||
DB::getConn()->endTransaction();
|
DB::getConn()->endTransaction();
|
||||||
|
$success=DataObject::get('Page', "\"Title\"='Read only success'");
|
||||||
$fail=DataObject::get('Page', "\"Title\"='Read only failed'");
|
$fail=DataObject::get('Page', "\"Title\"='Read only failed'");
|
||||||
|
|
||||||
//This page should be in the system
|
//This page should be in the system
|
||||||
|
Loading…
Reference in New Issue
Block a user