mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
More predictable default for CakeShema class naming.
Instead of using the `APP_DIR` constant, which may change between developer installations of a project and cause issues loading Schemas generated elsewhere, use a fixed string, 'App'. This is related to CakeDC/migrations#184 and should fully resolve #4174.
This commit is contained in:
parent
f93029b29f
commit
be9be48c46
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class CakeSchema extends Object {
|
|||
}
|
||||
|
||||
if (strtolower($this->name) === 'cake') {
|
||||
$this->name = Inflector::camelize(Inflector::slug(Configure::read('App.dir')));
|
||||
$this->name = 'App';
|
||||
}
|
||||
|
||||
if (empty($options['path'])) {
|
||||
|
|
Loading…
Reference in a new issue