Dont include deprecated options for bake

This commit is contained in:
Mark Scherer 2015-05-17 23:24:23 +02:00
parent 4f3602ad5f
commit f742fa51fe

View file

@ -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) {