|
@@ -91,11 +91,11 @@ class ReflectedColumn implements \JsonSerializable
|
91
|
91
|
{
|
92
|
92
|
$name = $json->name;
|
93
|
93
|
$type = $json->type;
|
94
|
|
- $length = isset($json->length) ? $json->length : 0;
|
95
|
|
- $precision = isset($json->precision) ? $json->precision : 0;
|
96
|
|
- $scale = isset($json->scale) ? $json->scale : 0;
|
97
|
|
- $nullable = isset($json->nullable) ? $json->nullable : false;
|
98
|
|
- $pk = isset($json->pk) ? $json->pk : false;
|
|
94
|
+ $length = isset($json->length) ? (int) $json->length : 0;
|
|
95
|
+ $precision = isset($json->precision) ? (int) $json->precision : 0;
|
|
96
|
+ $scale = isset($json->scale) ? (int) $json->scale : 0;
|
|
97
|
+ $nullable = isset($json->nullable) ? (bool) $json->nullable : false;
|
|
98
|
+ $pk = isset($json->pk) ? (bool) $json->pk : false;
|
99
|
99
|
$fk = isset($json->fk) ? $json->fk : '';
|
100
|
100
|
return new ReflectedColumn($name, $type, $length, $precision, $scale, $nullable, $pk, $fk);
|
101
|
101
|
}
|