fixing CakeTestModel constructor of previous commit, cleaning up after schema() call

This commit is contained in:
Ceeram 2011-11-23 01:32:27 +01:00
parent 05940ae1ec
commit 07d1621bc5

View file

@ -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;
}
}