Base model class no longer changes an already defined schemaName value

This commit is contained in:
Joseph Woodruff 2014-04-02 13:58:29 -06:00
parent 997154565f
commit d526fdadc1

View file

@ -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);
}
/**