Permalink
Browse files

Add validation guess for not null + text types.

Fixes #2493
  • Loading branch information...
1 parent df5d9ac commit 70bb839de9fde351cb2a1379fe8b89788204fe36 @markstory markstory committed Jan 21, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/Console/Command/Task/ModelTask.php
@@ -426,6 +426,8 @@ public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') {
$guess = $methods['uuid'];
} elseif ($metaData['type'] == 'string') {
$guess = $methods['notempty'];
+ } elseif ($metaData['type'] == 'text') {
+ $guess = $methods['notempty'];
} elseif ($metaData['type'] == 'integer') {
$guess = $methods['numeric'];
} elseif ($metaData['type'] == 'boolean') {

0 comments on commit 70bb839

Please sign in to comment.