Skip to content
Permalink
Browse files

Fixed schema reading where table name contains the datasource prefix.

  • Loading branch information...
predominant committed May 31, 2011
1 parent 6aca8dc commit 52b90872dff2c1cfbfbd73759ff42465d91af9d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/cake_schema.php
@@ -300,7 +300,7 @@ function read($options = array()) {
if (strpos($table, $prefix) !== 0) {
continue;
}
$table = str_replace($prefix, '', $table);
$table = preg_replace('/^' . preg_quote($prefix) . '/', '', $table);
}
$Object = new AppModel(array(
'name' => Inflector::classify($table), 'table' => $table, 'ds' => $connection

0 comments on commit 52b9087

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.