mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
fix for custom model name in bake 1.2
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3683 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5b0738d73f
commit
6f2d0f6951
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ class Bake {
|
||||||
if (intval($enteredModel) > 0 && intval($enteredModel) <= $i ) {
|
if (intval($enteredModel) > 0 && intval($enteredModel) <= $i ) {
|
||||||
$currentModelName = $this->__modelName($tables[intval($enteredModel) - 1]);
|
$currentModelName = $this->__modelName($tables[intval($enteredModel) - 1]);
|
||||||
} else {
|
} else {
|
||||||
$currentModelName = $this->__modelName($enteredModel);
|
$currentModelName = $enteredModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
$currentTableName = Inflector::tableize($currentModelName);
|
$currentTableName = Inflector::tableize($currentModelName);
|
||||||
|
|
Loading…
Reference in a new issue