Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7dcf66dd956afe526f98b1c68f1ab1f6e663fcab 1 parent eab706e
Mark Story markstory authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  cake/libs/model/model.php
3  cake/libs/model/model.php
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.