Skip to content

Commit

Permalink
Adding case 'datetime' to validation guesses.
Browse files Browse the repository at this point in the history
In ModelTask->fieldValidation added option "datetime"
  • Loading branch information
fitorec authored and markstory committed Jun 11, 2012
1 parent c090845 commit 1bcb8da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Console/Command/Task/ModelTask.php
Expand Up @@ -440,6 +440,8 @@ public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') {
$guess = $methods['date'];
} elseif ($metaData['type'] == 'time') {
$guess = $methods['time'];
} elseif ($metaData['type'] == 'datetime') {
$guess = $methods['datetime'];
} elseif ($metaData['type'] == 'inet') {
$guess = $methods['ip'];
}
Expand Down

0 comments on commit 1bcb8da

Please sign in to comment.