Add removed getDataSource() call.

This fixes an issue where the wrong datasource could potentially be used
for getting the full table name.
This commit is contained in:
mark_story 2012-08-10 21:48:22 -04:00
parent 7dae12456a
commit 0bbf61ce3d

View file

@ -257,6 +257,7 @@ class CakeSchema extends Object {
if (!is_object($Object) || $Object->useTable === false) {
continue;
}
$db = $Object->getDataSource();
$fulltable = $table = $db->fullTableName($Object, false, false);
if ($prefix && strpos($table, $prefix) !== 0) {