From 07d1621bc5f65b2b9a8205e644af4a66e1b678c2 Mon Sep 17 00:00:00 2001 From: Ceeram Date: Wed, 23 Nov 2011 01:32:27 +0100 Subject: [PATCH] fixing CakeTestModel constructor of previous commit, cleaning up after schema() call --- lib/Cake/TestSuite/Fixture/CakeTestModel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/TestSuite/Fixture/CakeTestModel.php b/lib/Cake/TestSuite/Fixture/CakeTestModel.php index eb3539d80..cc296cbc9 100644 --- a/lib/Cake/TestSuite/Fixture/CakeTestModel.php +++ b/lib/Cake/TestSuite/Fixture/CakeTestModel.php @@ -41,7 +41,9 @@ class CakeTestModel extends Model { parent::__construct($id, $table, $ds); if ($this->useTable && $this->primaryKey && $this->schema($this->primaryKey)) { $this->order = array($this->alias . '.' . $this->primaryKey => 'ASC'); + $this->_schema = null; } + $this->_sourceConfigured = false; } }