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:
gwoo 2006-10-15 08:28:26 +00:00
parent 5b0738d73f
commit 6f2d0f6951

View file

@ -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);