@@ 73-81 (lines=9) @@ | ||
70 | ); |
|
71 | } |
|
72 | ||
73 | if (!isset($fieldMapping['type']) || |
|
74 | (isset($fieldMapping['type']) && $fieldMapping['type'] !== 'CubicheType') |
|
75 | ) { |
|
76 | throw MappingException::inField( |
|
77 | 'The cubiche:enum parent should have a "type" value equal to CubicheType', |
|
78 | $classMetadata->name, |
|
79 | $fieldName |
|
80 | ); |
|
81 | } |
|
82 | ||
83 | $propertyMetadata = new PropertyMetadata($classMetadata->name, $fieldName, 'enum'); |
|
84 | $propertyMetadata->setType($enumType); |
|
@@ 117-125 (lines=9) @@ | ||
114 | ); |
|
115 | } |
|
116 | ||
117 | if (!isset($fieldMapping['type']) || |
|
118 | (isset($fieldMapping['type']) && $fieldMapping['type'] !== 'CubicheType') |
|
119 | ) { |
|
120 | throw MappingException::inField( |
|
121 | 'The cubiche:'.$type.' parent should have a "type" value equal to CubicheType', |
|
122 | $classMetadata->name, |
|
123 | $fieldName |
|
124 | ); |
|
125 | } |
|
126 | ||
127 | $propertyMetadata = new PropertyMetadata($classMetadata->name, $fieldName, $type); |
|
128 |