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
This commit is contained in:
gwoo 2008-03-09 17:44:50 +00:00
parent dd10cb191f
commit c64d4a88f0

View file

@ -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.