We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1a08240 + c55d415 commit c453c7dCopy full SHA for c453c7d
lib/Gedmo/Translatable/Mapping/Driver/Yaml.php
@@ -73,9 +73,9 @@ protected function _loadMappingFile($file)
73
return \Symfony\Component\Yaml\Yaml::parse(file_get_contents($file));
74
}
75
76
- private function buildFieldConfiguration($field, array $fieldMapping, array &$config)
+ private function buildFieldConfiguration($field, $fieldMapping, array &$config)
77
{
78
- if (isset($fieldMapping['gedmo'])) {
+ if (is_array($fieldMapping) && isset($fieldMapping['gedmo'])) {
79
if (in_array('translatable', $fieldMapping['gedmo']) || isset($fieldMapping['gedmo']['translatable'])) {
80
// fields cannot be overrided and throws mapping exception
81
$config['fields'][] = $field;
0 commit comments