From d526fdadc1de0f612dfc291f7d391f02a6d3a056 Mon Sep 17 00:00:00 2001 From: Joseph Woodruff Date: Wed, 2 Apr 2014 13:58:29 -0600 Subject: [PATCH] Base model class no longer changes an already defined schemaName value --- lib/Cake/Model/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Model/Model.php b/lib/Cake/Model/Model.php index 209b3e7c9..7e230d7d1 100644 --- a/lib/Cake/Model/Model.php +++ b/lib/Cake/Model/Model.php @@ -3485,7 +3485,7 @@ class Model extends Object implements CakeEventListener { $this->tablePrefix = $db->config['prefix']; } - $this->schemaName = $db->getSchemaName(); + $this->schemaName = (empty($this->schemaName) ? $db->getSchemaName() : $this->schemaName); } /**