Permalink
Browse files

2.6.2: cake bake / ModelTask should respect decimal

PR for #6066
  • Loading branch information...
ionas committed Mar 13, 2015
1 parent 0b916ce commit 5f40161e24e55fe4649d0b972e520650b6f4dc1b
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Cake/Console/Command/Task/ModelTask.php
@@ -460,6 +460,8 @@ public function fieldValidation($fieldName, $metaData, $primaryKey = 'id') {
$guess = $methods['datetime'];
} elseif ($metaData['type'] === 'inet') {
$guess = $methods['ip'];
} elseif ($metaData['type'] === 'decimal') {
$guess = $methods['decimal'];
}
}

0 comments on commit 5f40161

Please sign in to comment.