mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
fix for bake model validations...thanks again, sdevore
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6581 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
0c9023fd1d
commit
d4860f4c1d
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,6 @@ class ModelTask extends Shell {
|
|||
if (class_exists('Validation')) {
|
||||
$parent = get_class_methods(get_parent_class('Validation'));
|
||||
$options = array_diff(get_class_methods('Validation'), $parent);
|
||||
$methods = array_flip($options);
|
||||
}
|
||||
|
||||
foreach ($fields as $fieldName => $field) {
|
||||
|
@ -256,6 +255,8 @@ class ModelTask extends Shell {
|
|||
$skip++;
|
||||
}
|
||||
}
|
||||
$methods = array_flip($choices);
|
||||
|
||||
$prompt .= "{$skip} - Do not do any validation on this field.\n";
|
||||
$prompt .= "... or enter in a valid regex validation string.\n";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue