diff --git a/cake/console/libs/tasks/model.php b/cake/console/libs/tasks/model.php index 3b5b75d16..5d38a7d15 100644 --- a/cake/console/libs/tasks/model.php +++ b/cake/console/libs/tasks/model.php @@ -566,7 +566,7 @@ class ModelTask extends Shell { $out .= "\n"; if (!empty($associations)) { - if (!empty($associations['belongsTo']) || !empty($associations['$hasOne']) || !empty($associations['hasMany']) || !empty($associations['hasAndBelongsToMany'])) { + if (!empty($associations['belongsTo']) || !empty($associations['hasOne']) || !empty($associations['hasMany']) || !empty($associations['hasAndBelongsToMany'])) { $out.= "\t//The Associations below have been created with all possible keys, those that are not needed can be removed\n"; }