Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Base model class no longer changes an already defined schemaName value
  • Loading branch information
Joseph Woodruff committed Apr 2, 2014
1 parent 9971545 commit d526fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Model.php
Expand Up @@ -3485,7 +3485,7 @@ public function setDataSource($dataSource = null) {
$this->tablePrefix = $db->config['prefix'];
}

$this->schemaName = $db->getSchemaName();
$this->schemaName = (empty($this->schemaName) ? $db->getSchemaName() : $this->schemaName);
}

/**
Expand Down

0 comments on commit d526fda

Please sign in to comment.