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:
Mark Story 2010-01-02 00:07:31 -05:00
parent eab706e772
commit 7dcf66dd95

View file

@ -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) {