Procházet zdrojové kódy

Fix undefined variable

Deni před 13 roky
rodič
revize
22a6762369
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);