mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Checkin that PluginAppModel is not in the list of modles to be used for CakeSchema
This commit is contained in:
parent
c105899cbc
commit
b314149efd
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue