Skip to content
This repository
Browse code

Add removed getDataSource() call.

This fixes an issue where the wrong datasource could potentially be used
for getting the full table name.
commit 0bbf61ce3db3d7f0657083f6530426c269aa4c10 1 parent 7dae124
Mark Story authored August 10, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  lib/Cake/Model/CakeSchema.php
1  lib/Cake/Model/CakeSchema.php
@@ -257,6 +257,7 @@ public function read($options = array()) {
257 257
 				if (!is_object($Object) || $Object->useTable === false) {
258 258
 					continue;
259 259
 				}
  260
+				$db = $Object->getDataSource();
260 261
 
261 262
 				$fulltable = $table = $db->fullTableName($Object, false, false);
262 263
 				if ($prefix && strpos($table, $prefix) !== 0) {

0 notes on commit 0bbf61c

Please sign in to comment.
Something went wrong with that request. Please try again.