Browse Source

Fix inflection when baking models.

Refs #5428
Mark Story 11 years ago
parent
commit
205ad14aa8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Core/ConventionsTrait.php

+ 1 - 1
src/Core/ConventionsTrait.php

@@ -61,7 +61,7 @@ trait ConventionsTrait {
  */
 	protected function _modelNameFromKey($key) {
 		$key = str_replace('_id', '', $key);
-		return Inflector::pluralize(Inflector::classify($key));
+		return Inflector::classify(Inflector::pluralize($key));
 	}
 
 /**