|
@@ 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->className(), |
| 69 |
|
$fieldName |
| 70 |
|
); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
if (!isset($fieldMapping['type']) || |
| 74 |
|
(isset($fieldMapping['type']) && $fieldMapping['type'] !== 'CubicheType') |
|
@@ 111-117 (lines=7) @@
|
| 108 |
|
$fieldName = $fieldMapping['name']; |
| 109 |
|
|
| 110 |
|
if ($field->getName() == 'field') { |
| 111 |
|
if (isset($fieldMapping['id']) && $fieldMapping['id'] !== false) { |
| 112 |
|
throw MappingException::inField( |
| 113 |
|
'The cubiche:'.$type.' configuration is only for field tags that is not an id', |
| 114 |
|
$classMetadata->className(), |
| 115 |
|
$fieldName |
| 116 |
|
); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
if (!isset($fieldMapping['type']) || |
| 120 |
|
(isset($fieldMapping['type']) && $fieldMapping['type'] !== 'CubicheType') |