Skip to content

Commit

Permalink
improved integer field detection
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 5, 2016
1 parent 7af8984 commit a14db29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FieldFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit a14db29

Please sign in to comment.