瀏覽代碼

Merge pull request #52 from yethee/fix_notice

Fix undefined variable
Johannes 13 年之前
父節點
當前提交
7a99f48724
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Serializer/XmlDeserializationVisitor.php

+ 1 - 1
Serializer/XmlDeserializationVisitor.php

@@ -165,7 +165,7 @@ class XmlDeserializationVisitor extends AbstractDeserializationVisitor
 
         foreach ($data->$entryName as $v) {
             if (!isset($v[$this->currentMetadata->xmlKeyAttribute])) {
-                throw new RuntimeException(sprintf('The key attribute "%s" must be set for each entry of the map.', $metadata->xmlKeyAttribute));
+                throw new RuntimeException(sprintf('The key attribute "%s" must be set for each entry of the map.', $this->currentMetadata->xmlKeyAttribute));
             }
 
             $k = $this->navigator->accept($v[$this->currentMetadata->xmlKeyAttribute], $keyType, $this);