From c64d4a88f000c832abc45dfa6fff1a97f4f5c069 Mon Sep 17 00:00:00 2001 From: gwoo Date: Sun, 9 Mar 2008 17:44:50 +0000 Subject: [PATCH] fixes #3892, irregular plurar not reflected in baking git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6539 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/shell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/console/libs/shell.php b/cake/console/libs/shell.php index f144849bb..b4987d221 100644 --- a/cake/console/libs/shell.php +++ b/cake/console/libs/shell.php @@ -552,7 +552,7 @@ class Shell extends Object { */ function _modelNameFromKey($key) { $name = str_replace('_id', '',$key); - return $this->_modelName($name); + return Inflector::camelize($name); } /** * creates the singular name for use in views.