mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
dd10cb191f
commit
c64d4a88f0
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue