src/Graviton/DocumentBundle/DependencyInjection/Compiler/ExtRefFieldsCompilerPass.php 1 location
|
@@ 130-138 (lines=9) @@
|
| 127 |
|
$exposedPrefix.$field->getExposedName().'.' |
| 128 |
|
) |
| 129 |
|
); |
| 130 |
|
} elseif ($field instanceof EmbedMany) { |
| 131 |
|
$result = array_merge( |
| 132 |
|
$result, |
| 133 |
|
$this->processDocument( |
| 134 |
|
$field->getDocument(), |
| 135 |
|
$exposedPrefix.$field->getExposedName().'.0.' |
| 136 |
|
) |
| 137 |
|
); |
| 138 |
|
} |
| 139 |
|
} |
| 140 |
|
|
| 141 |
|
return $result; |
src/Graviton/DocumentBundle/DependencyInjection/Compiler/TranslatableFieldsCompilerPass.php 1 location
|
@@ 70-78 (lines=9) @@
|
| 67 |
|
if (in_array($field->getFieldName(), $translatableFields, true)) { |
| 68 |
|
$result[] = $prefix.$field->getExposedName(); |
| 69 |
|
} |
| 70 |
|
} elseif ($field instanceof EmbedOne) { |
| 71 |
|
$result = array_merge( |
| 72 |
|
$result, |
| 73 |
|
$this->getTranslatableFields( |
| 74 |
|
$field->getDocument(), |
| 75 |
|
$prefix.$field->getExposedName().'.' |
| 76 |
|
) |
| 77 |
|
); |
| 78 |
|
} elseif ($field instanceof EmbedMany) { |
| 79 |
|
$result = array_merge( |
| 80 |
|
$result, |
| 81 |
|
$this->getTranslatableFields( |