Permalink
Browse files

Adding case 'datetime' to validation guesses.

In ModelTask->fieldValidation added option "datetime"
  • Loading branch information...
1 parent c090845 commit 1bcb8daf2139c78acd1ce4f8c6025413faece271 @fitorec fitorec committed with markstory Jun 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/Console/Command/Task/ModelTask.php
@@ -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'];
}

0 comments on commit 1bcb8da

Please sign in to comment.