From 19c03a0bd980aeee73ac7d5cefb84e8705645837 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 12 Apr 2010 01:54:33 +0000 Subject: [PATCH] MINOR: Flush get_one cache after rebuilding database schema. (from r89966) (from r96730) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102352 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/SapphireTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index 1a9815f78..c609e22bd 100755 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -182,6 +182,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase { // rebuild the db schema $dbadmin = new DatabaseAdmin(); $dbadmin->doBuild(true, false, true); + singleton('DataObject')->flushCache(); } // clear singletons, they're caching old extension info // which is used in DatabaseAdmin->doBuild()