Skip to content
This repository
Browse code

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 authored

Showing 1 changed file with 0 additions and 3 deletions. Show diff stats Hide diff stats

  1. 3  cake/libs/model/model.php
3  cake/libs/model/model.php
@@ -487,9 +487,6 @@ function __construct($id = false, $table = null, $ds = null) {
487 487
 			if ($this->useTable === null) {
488 488
 				$this->useTable = Inflector::tableize($this->name);
489 489
 			}
490  
-			if (method_exists($this, 'setTablePrefix')) {
491  
-				$this->setTablePrefix();
492  
-			}
493 490
 			$this->setSource($this->useTable);
494 491
 
495 492
 			if ($this->displayField == null) {

0 notes on commit 7dcf66d

Please sign in to comment.
Something went wrong with that request. Please try again.