Add validation guess for not null + text types.

Fixes #2493
This commit is contained in:
mark_story 2012-01-21 13:10:30 -05:00
parent df5d9ac3d1
commit 70bb839de9

View file

@ -426,6 +426,8 @@ class ModelTask extends BakeTask {
$guess = $methods['uuid']; $guess = $methods['uuid'];
} elseif ($metaData['type'] == 'string') { } elseif ($metaData['type'] == 'string') {
$guess = $methods['notempty']; $guess = $methods['notempty'];
} elseif ($metaData['type'] == 'text') {
$guess = $methods['notempty'];
} elseif ($metaData['type'] == 'integer') { } elseif ($metaData['type'] == 'integer') {
$guess = $methods['numeric']; $guess = $methods['numeric'];
} elseif ($metaData['type'] == 'boolean') { } elseif ($metaData['type'] == 'boolean') {