mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +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) {
|
if ($this->useTable === null) {
|
||||||
$this->useTable = Inflector::tableize($this->name);
|
$this->useTable = Inflector::tableize($this->name);
|
||||||
}
|
}
|
||||||
if (method_exists($this, 'setTablePrefix')) {
|
|
||||||
$this->setTablePrefix();
|
|
||||||
}
|
|
||||||
$this->setSource($this->useTable);
|
$this->setSource($this->useTable);
|
||||||
|
|
||||||
if ($this->displayField == null) {
|
if ($this->displayField == null) {
|
||||||
|
|
Loading…
Reference in a new issue