Permalink
Browse files

Removing dynamic calling of setTablePrefix(). tableprefix should be w…

…ith the tablePrefix property, and any other custom construction behavior should be done in an overridden Model::__construct.
  • Loading branch information...
1 parent eab706e commit 7dcf66dd956afe526f98b1c68f1ab1f6e663fcab @markstory markstory committed Jan 2, 2010
Showing with 0 additions and 3 deletions.
  1. +0 −3 cake/libs/model/model.php
@@ -487,9 +487,6 @@ function __construct($id = false, $table = null, $ds = null) {
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) {

0 comments on commit 7dcf66d

Please sign in to comment.