diff --git a/cake/scripts/bake.php b/cake/scripts/bake.php index 65d5a6f62..0a33212ba 100644 --- a/cake/scripts/bake.php +++ b/cake/scripts/bake.php @@ -1414,7 +1414,7 @@ class Bake { $habtmModelName = $this->__modelName($associationName); $habtmSingularName = $this->__singularName($associationName); $habtmPluralName = $this->__pluralName($associationName); - $actions .= "\t\t\${$habtmPluralName} = \$this->{$currentModelName}->{$habtmoModelName}->generateList();\n"; + $actions .= "\t\t\${$habtmPluralName} = \$this->{$currentModelName}->{$habtmModelName}->generateList();\n"; $compact[] = "'{$habtmPluralName}'"; } } @@ -1470,7 +1470,7 @@ class Bake { $habtmModelName = $this->__modelName($associationName); $habtmSingularName = $this->__singularName($associationName); $habtmPluralName = $this->__pluralName($associationName); - $actions .= "\t\t\${$habtmPluralName} = \$this->{$currentModelName}->{$habtmoModelName}->generateList();\n"; + $actions .= "\t\t\${$habtmPluralName} = \$this->{$currentModelName}->{$habtmModelName}->generateList();\n"; $compact[] = "'{$habtmPluralName}'"; } }