Skip to content

Commit 4bc2e4f

Browse files
fix merge
1 parent d2f4e82 commit 4bc2e4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Mapping/Loader/YamlFileLoader.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
7474

7575
$attributeMetadata->addGroup($group);
7676
}
77+
}
7778

78-
if (isset($data['max_depth'])) {
79-
if (!is_int($data['max_depth'])) {
80-
throw new MappingException(sprintf('The "max_depth" value must be an integer in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
81-
}
82-
83-
$attributeMetadata->setMaxDepth($data['max_depth']);
79+
if (isset($data['max_depth'])) {
80+
if (!is_int($data['max_depth'])) {
81+
throw new MappingException(sprintf('The "max_depth" value must be an integer in "%s" for the attribute "%s" of the class "%s".', $this->file, $attribute, $classMetadata->getName()));
8482
}
83+
84+
$attributeMetadata->setMaxDepth($data['max_depth']);
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)