diff --git a/lib/Cake/Console/Command/Task/ModelTask.php b/lib/Cake/Console/Command/Task/ModelTask.php index 27e1a0960..8ed2b2ea0 100644 --- a/lib/Cake/Console/Command/Task/ModelTask.php +++ b/lib/Cake/Console/Command/Task/ModelTask.php @@ -438,6 +438,8 @@ class ModelTask extends BakeTask { $guess = $methods['notEmpty']; } elseif ($metaData['type'] === 'integer') { $guess = $methods['numeric']; + } elseif ($metaData['type'] === 'float') { + $guess = $methods['numeric']; } elseif ($metaData['type'] === 'boolean') { $guess = $methods['boolean']; } elseif ($metaData['type'] === 'date') {