mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding case 'datetime' to validation guesses.
In ModelTask->fieldValidation added option "datetime"
This commit is contained in:
parent
c090845117
commit
1bcb8daf21
1 changed files with 2 additions and 0 deletions
|
@ -440,6 +440,8 @@ class ModelTask extends BakeTask {
|
|||
$guess = $methods['date'];
|
||||
} elseif ($metaData['type'] == 'time') {
|
||||
$guess = $methods['time'];
|
||||
} elseif ($metaData['type'] == 'datetime') {
|
||||
$guess = $methods['datetime'];
|
||||
} elseif ($metaData['type'] == 'inet') {
|
||||
$guess = $methods['ip'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue