Skip to content

Commit

Permalink
Fix inflection when baking models.
Browse files Browse the repository at this point in the history
Refs #5428, #5488
  • Loading branch information
ADmad committed Dec 25, 2014
1 parent 58b9851 commit d443c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/ConventionsTrait.php
Expand Up @@ -61,7 +61,7 @@ protected function _modelKey($name) {
*/
protected function _modelNameFromKey($key) {
$key = str_replace('_id', '', $key);
return Inflector::classify(Inflector::pluralize($key));
return Inflector::camelize(Inflector::pluralize($key));
}

/**
Expand Down

0 comments on commit d443c74

Please sign in to comment.