@@ 74-82 (lines=9) @@ | ||
71 | return; |
|
72 | } |
|
73 | ||
74 | if ($type === Type\StringType::class) { |
|
75 | $metadata->mapField([ |
|
76 | 'fieldName' => $fieldName, |
|
77 | 'type' => 'string', |
|
78 | 'nullable' => true, |
|
79 | ]); |
|
80 | ||
81 | return; |
|
82 | } |
|
83 | ||
84 | if ($type === Type\IntegerType::class) { |
|
85 | $metadata->mapField([ |
|
@@ 84-92 (lines=9) @@ | ||
81 | return; |
|
82 | } |
|
83 | ||
84 | if ($type === Type\IntegerType::class) { |
|
85 | $metadata->mapField([ |
|
86 | 'fieldName' => $fieldName, |
|
87 | 'type' => 'integer', |
|
88 | 'nullable' => true, |
|
89 | ]); |
|
90 | ||
91 | return; |
|
92 | } |
|
93 | ||
94 | if ($type === Type\DateTimeType::class) { |
|
95 | $metadata->mapField([ |
@@ 55-64 (lines=10) @@ | ||
52 | return; |
|
53 | } |
|
54 | ||
55 | if ($type === Type\StringType::class) { |
|
56 | $metadata->mapField([ |
|
57 | 'fieldName' => $fieldName, |
|
58 | 'type' => 'string', |
|
59 | 'nullable' => true, |
|
60 | 'multivalue' => $options['multivalue'], |
|
61 | ]); |
|
62 | ||
63 | return; |
|
64 | } |
|
65 | ||
66 | if ($type === Type\IntegerType::class) { |
|
67 | $metadata->mapField([ |
|
@@ 66-75 (lines=10) @@ | ||
63 | return; |
|
64 | } |
|
65 | ||
66 | if ($type === Type\IntegerType::class) { |
|
67 | $metadata->mapField([ |
|
68 | 'fieldName' => $fieldName, |
|
69 | 'type' => 'long', |
|
70 | 'nullable' => true, |
|
71 | 'multivalue' => $options['multivalue'], |
|
72 | ]); |
|
73 | ||
74 | return; |
|
75 | } |
|
76 | ||
77 | if ($type === Type\BooleanType::class) { |
|
78 | $metadata->mapField([ |
|
@@ 97-106 (lines=10) @@ | ||
94 | return; |
|
95 | } |
|
96 | ||
97 | if ($type === Type\DateTimeType::class) { |
|
98 | $metadata->mapField([ |
|
99 | 'fieldName' => $fieldName, |
|
100 | 'type' => 'date', |
|
101 | 'nullable' => true, |
|
102 | 'multivalue' => $options['multivalue'], |
|
103 | ]); |
|
104 | ||
105 | return; |
|
106 | } |
|
107 | ||
108 | if ($type === Type\ReferenceType::class) { |
|
109 | $metadata->mapManyToOne([ |