Checkin that PluginAppModel is not in the list of modles to be used for CakeSchema

This commit is contained in:
José Lorenzo Rodríguez 2011-02-21 23:28:00 -04:30
parent c105899cbc
commit b314149efd

View file

@ -230,13 +230,18 @@ class CakeSchema extends Object {
$importModel = $model;
$plugin = null;
if (isset($this->plugin)) {
if ($model == $this->plugin . 'AppModel') {
continue;
}
$importModel = $model;
$plugin = $this->plugin . '.';
}
App::uses($importModel, $plugin . 'Model');
if (!class_exists($importModel)) {
continue;
}
$vars = get_class_vars($model);
if (empty($vars['useDbConfig']) || $vars['useDbConfig'] != $connection) {
continue;