Skip to content

Commit

Permalink
Merge pull request #1635 from vbartusevicius/v2.4.x
Browse files Browse the repository at this point in the history
fix for #1634
  • Loading branch information
l3pp4rd authored Jul 19, 2016
2 parents 1a08240 + c55d415 commit c453c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Gedmo/Translatable/Mapping/Driver/Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ protected function _loadMappingFile($file)
return \Symfony\Component\Yaml\Yaml::parse(file_get_contents($file));
}

private function buildFieldConfiguration($field, array $fieldMapping, array &$config)
private function buildFieldConfiguration($field, $fieldMapping, array &$config)
{
if (isset($fieldMapping['gedmo'])) {
if (is_array($fieldMapping) && isset($fieldMapping['gedmo'])) {
if (in_array('translatable', $fieldMapping['gedmo']) || isset($fieldMapping['gedmo']['translatable'])) {
// fields cannot be overrided and throws mapping exception
$config['fields'][] = $field;
Expand Down

0 comments on commit c453c7d

Please sign in to comment.