Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add removed getDataSource() call.

This fixes an issue where the wrong datasource could potentially be used
for getting the full table name.
  • Loading branch information...
commit 0bbf61ce3db3d7f0657083f6530426c269aa4c10 1 parent 7dae124
@markstory markstory authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/Cake/Model/CakeSchema.php
View
1  lib/Cake/Model/CakeSchema.php
@@ -257,6 +257,7 @@ public function read($options = array()) {
if (!is_object($Object) || $Object->useTable === false) {
continue;
}
+ $db = $Object->getDataSource();
$fulltable = $table = $db->fullTableName($Object, false, false);
if ($prefix && strpos($table, $prefix) !== 0) {
Please sign in to comment.
Something went wrong with that request. Please try again.