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 (from r101592)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112004 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
df0e553eee
commit
472dbf3e32
@ -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