Permalink
Browse files

fixing CakeTestModel constructor of previous commit, cleaning up afte…

…r schema() call
  • Loading branch information...
1 parent 05940ae commit 07d1621bc5f65b2b9a8205e644af4a66e1b678c2 @ceeram ceeram committed Nov 23, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/TestSuite/Fixture/CakeTestModel.php
@@ -41,7 +41,9 @@ function __construct($id = false, $table = null, $ds = null) {
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;
}
}

0 comments on commit 07d1621

Please sign in to comment.