소스 검색

Fixed path for finalization errors when using a prototype

Christophe Coevoet 14 년 전
부모
커밋
fc9ff68052
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/Symfony/Component/Config/Definition/ArrayNode.php

+ 1 - 0
src/Symfony/Component/Config/Definition/ArrayNode.php

@@ -293,6 +293,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
 
         if (null !== $this->prototype) {
             foreach ($value as $k => $v) {
+                $this->prototype->setName($k);
                 try {
                     $value[$k] = $this->prototype->finalize($v);
                 } catch (UnsetKeyException $unset) {