@@ 65-71 (lines=7) @@ | ||
62 | $enumType = $itemMapping['type']; |
|
63 | ||
64 | if ($field->getName() == 'field') { |
|
65 | if (isset($fieldMapping['id']) && $fieldMapping['id'] !== false) { |
|
66 | throw MappingException::inField( |
|
67 | 'The cubiche:enum configuration is only for field tags that is not an id', |
|
68 | $classMetadata->name, |
|
69 | $fieldName |
|
70 | ); |
|
71 | } |
|
72 | ||
73 | if (!isset($fieldMapping['type']) || |
|
74 | (isset($fieldMapping['type']) && $fieldMapping['type'] !== 'CubicheType') |
|
@@ 109-115 (lines=7) @@ | ||
106 | $fieldName = $fieldMapping['name']; |
|
107 | ||
108 | if ($field->getName() == 'field') { |
|
109 | if (isset($fieldMapping['id']) && $fieldMapping['id'] !== false) { |
|
110 | throw MappingException::inField( |
|
111 | 'The cubiche:'.$type.' configuration is only for field tags that is not an id', |
|
112 | $classMetadata->name, |
|
113 | $fieldName |
|
114 | ); |
|
115 | } |
|
116 | ||
117 | if (!isset($fieldMapping['type']) || |
|
118 | (isset($fieldMapping['type']) && $fieldMapping['type'] !== 'CubicheType') |