@@ 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->className(), |
|
79 | $fieldName |
|
80 | ); |
|
81 | } |
|
82 | ||
83 | $propertyMetadata = new PropertyMetadata($classMetadata->className(), $fieldName); |
|
84 | ||
@@ 119-127 (lines=9) @@ | ||
116 | ); |
|
117 | } |
|
118 | ||
119 | if (!isset($fieldMapping['type']) || |
|
120 | (isset($fieldMapping['type']) && $fieldMapping['type'] !== 'CubicheType') |
|
121 | ) { |
|
122 | throw MappingException::inField( |
|
123 | 'The cubiche:'.$type.' parent should have a "type" value equal to CubicheType', |
|
124 | $classMetadata->className(), |
|
125 | $fieldName |
|
126 | ); |
|
127 | } |
|
128 | ||
129 | $propertyMetadata = new PropertyMetadata($classMetadata->className(), $fieldName); |
|
130 | $propertyMetadata->addMetadata('namespace', $type); |