/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
This commit is contained in:
gwoo 2008-03-16 05:41:09 +00:00
parent d4860f4c1d
commit d8a7097490

View file

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