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]); }