From 18733c6219132c2508e2b56c0248265329289ff0 Mon Sep 17 00:00:00 2001 From: Chauncey McAskill Date: Mon, 4 Nov 2019 23:28:46 -0500 Subject: [PATCH] Fix camelization for StructureMetadata Amends: 3625fc36182c481f2a7fad40896ab005e22e4550 --- src/Charcoal/Property/Structure/StructureMetadata.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Charcoal/Property/Structure/StructureMetadata.php b/src/Charcoal/Property/Structure/StructureMetadata.php index cfbcda48..f19a644a 100644 --- a/src/Charcoal/Property/Structure/StructureMetadata.php +++ b/src/Charcoal/Property/Structure/StructureMetadata.php @@ -74,6 +74,7 @@ public function ident() public function setDefaultData(array $data) { foreach ($data as $key => $val) { + $key = $this->camelize($key); $this->defaultData[$key] = $val; } @@ -89,6 +90,7 @@ public function setDefaultData(array $data) public function setProperties(array $properties) { foreach ($properties as $propertyIdent => $propertyMetadata) { + $propertyIdent = $this->camelize($propertyIdent); if (isset($this->properties[$propertyIdent])) { $this->properties[$propertyIdent] = array_replace_recursive( $this->properties[$propertyIdent], @@ -117,6 +119,7 @@ public function hasProperty($propertyIdent) ); } + $propertyIdent = $this->camelize($propertyIdent); return isset($this->properties[$propertyIdent]); }