File tree 1 file changed +14
-14
lines changed
src/Symfony/Bridge/Doctrine/Form 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -52,28 +52,28 @@ public function guessType($class, $property)
52
52
}
53
53
54
54
switch ($ metadata ->getTypeOfField ($ property )) {
55
- case ' array ' :
55
+ case Type:: TARRAY :
56
56
return new TypeGuess ('collection ' , array (), Guess::MEDIUM_CONFIDENCE );
57
- case ' boolean ' :
57
+ case Type:: BOOLEAN :
58
58
return new TypeGuess ('checkbox ' , array (), Guess::HIGH_CONFIDENCE );
59
- case ' datetime ' :
60
- case ' vardatetime ' :
61
- case 'datetimetz ' :
59
+ case Type:: DATETIME :
60
+ case Type:: DATETIMETZ :
61
+ case 'vardatetime ' :
62
62
return new TypeGuess ('datetime ' , array (), Guess::HIGH_CONFIDENCE );
63
- case ' date ' :
63
+ case Type:: DATE :
64
64
return new TypeGuess ('date ' , array (), Guess::HIGH_CONFIDENCE );
65
- case ' time ' :
65
+ case Type:: TIME :
66
66
return new TypeGuess ('time ' , array (), Guess::HIGH_CONFIDENCE );
67
- case ' decimal ' :
68
- case ' float ' :
67
+ case Type:: DECIMAL :
68
+ case Type:: FLOAT :
69
69
return new TypeGuess ('number ' , array (), Guess::MEDIUM_CONFIDENCE );
70
- case ' integer ' :
71
- case ' bigint ' :
72
- case ' smallint ' :
70
+ case Type:: INTEGER :
71
+ case Type:: BIGINT :
72
+ case Type:: SMALLINT :
73
73
return new TypeGuess ('integer ' , array (), Guess::MEDIUM_CONFIDENCE );
74
- case ' string ' :
74
+ case Type:: STRING :
75
75
return new TypeGuess ('text ' , array (), Guess::MEDIUM_CONFIDENCE );
76
- case ' text ' :
76
+ case Type:: TEXT :
77
77
return new TypeGuess ('textarea ' , array (), Guess::MEDIUM_CONFIDENCE );
78
78
default :
79
79
return new TypeGuess ('text ' , array (), Guess::LOW_CONFIDENCE );
You can’t perform that action at this time.
0 commit comments