From f742fa51fea2cdfa13d6548ecebf0d02fe746261 Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Sun, 17 May 2015 23:24:23 +0200 Subject: [PATCH] Dont include deprecated options for bake --- lib/Cake/Console/Command/Task/ModelTask.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/Console/Command/Task/ModelTask.php b/lib/Cake/Console/Command/Task/ModelTask.php index 15563dd3f..dc7fe33cc 100644 --- a/lib/Cake/Console/Command/Task/ModelTask.php +++ b/lib/Cake/Console/Command/Task/ModelTask.php @@ -383,6 +383,8 @@ class ModelTask extends BakeTask { if (class_exists('Validation')) { $options = get_class_methods('Validation'); } + $deprecatedOptions = array('notEmpty'); + $options = array_diff($options, $deprecatedOptions); sort($options); $default = 1; foreach ($options as $option) {