From a14db29d8e86774aadd50945058df76b8cee205e Mon Sep 17 00:00:00 2001 From: oscarotero <oom@oscarotero.com> Date: Tue, 5 Jan 2016 19:23:59 +0100 Subject: [PATCH] improved integer field detection --- src/FieldFactory.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FieldFactory.php b/src/FieldFactory.php index 1148c29..87317dc 100644 --- a/src/FieldFactory.php +++ b/src/FieldFactory.php @@ -12,6 +12,7 @@ class FieldFactory implements FieldFactoryInterface protected $defaultType = 'SimpleCrud\\Fields\\Field'; protected $smartTypes = [ 'Decimal' => ['float'], + 'Integer' => ['tinyint', 'smallint', 'mediumint', 'bigint', 'year'], ]; protected $smartNames = [ 'Boolean' => ['active'],