mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing dynamic calling of setTablePrefix(). tableprefix should be with the tablePrefix property, and any other custom construction behavior should be done in an overridden Model::__construct.
This commit is contained in:
parent
eab706e772
commit
7dcf66dd95
1 changed files with 0 additions and 3 deletions
|
@ -487,9 +487,6 @@ class Model extends Overloadable {
|
|||
if ($this->useTable === null) {
|
||||
$this->useTable = Inflector::tableize($this->name);
|
||||
}
|
||||
if (method_exists($this, 'setTablePrefix')) {
|
||||
$this->setTablePrefix();
|
||||
}
|
||||
$this->setSource($this->useTable);
|
||||
|
||||
if ($this->displayField == null) {
|
||||
|
|
Loading…
Reference in a new issue