From d8a7097490e41fa7db088ded825683bf246a521f Mon Sep 17 00:00:00 2001 From: gwoo Date: Sun, 16 Mar 2008 05:41:09 +0000 Subject: [PATCH] /me thinks sdevore is the only one still using php4 so he helping debug bake model validations, with much more to come git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6582 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/tasks/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/console/libs/tasks/model.php b/cake/console/libs/tasks/model.php index 3f1c96963..8fe06df02 100644 --- a/cake/console/libs/tasks/model.php +++ b/cake/console/libs/tasks/model.php @@ -251,7 +251,7 @@ class ModelTask extends Shell { foreach ($options as $key => $option) { if ($option{0} != '_' && strtolower($option) != 'getinstance') { $prompt .= "{$skip} - {$option}\n"; - $choices[$skip] = $option; + $choices[$skip] = strtolower($option); $skip++; } } @@ -265,7 +265,7 @@ class ModelTask extends Shell { if ($fieldName == 'email') { $guess = $methods['email']; } elseif ($field['type'] == 'string') { - $guess = $methods['alphaNumeric']; + $guess = $methods['alphanumeric']; } elseif ($field['type'] == 'integer') { $guess = $methods['numeric']; } elseif ($field['type'] == 'boolean') {