mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
fixing CakeTestModel constructor of previous commit, cleaning up after schema() call
This commit is contained in:
parent
05940ae1ec
commit
07d1621bc5
1 changed files with 2 additions and 0 deletions
|
@ -41,7 +41,9 @@ class CakeTestModel extends Model {
|
||||||
parent::__construct($id, $table, $ds);
|
parent::__construct($id, $table, $ds);
|
||||||
if ($this->useTable && $this->primaryKey && $this->schema($this->primaryKey)) {
|
if ($this->useTable && $this->primaryKey && $this->schema($this->primaryKey)) {
|
||||||
$this->order = array($this->alias . '.' . $this->primaryKey => 'ASC');
|
$this->order = array($this->alias . '.' . $this->primaryKey => 'ASC');
|
||||||
|
$this->_schema = null;
|
||||||
}
|
}
|
||||||
|
$this->_sourceConfigured = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue