mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add numeric validator for float fields by default.
Make bake add numeric validator to float fields. Fixes #2163
This commit is contained in:
parent
c08df2a7f9
commit
bcafde6212
1 changed files with 2 additions and 0 deletions
|
@ -438,6 +438,8 @@ class ModelTask extends BakeTask {
|
|||
$guess = $methods['notEmpty'];
|
||||
} elseif ($metaData['type'] === 'integer') {
|
||||
$guess = $methods['numeric'];
|
||||
} elseif ($metaData['type'] === 'float') {
|
||||
$guess = $methods['numeric'];
|
||||
} elseif ($metaData['type'] === 'boolean') {
|
||||
$guess = $methods['boolean'];
|
||||
} elseif ($metaData['type'] === 'date') {
|
||||
|
|
Loading…
Reference in a new issue