diff --git a/src/DataDefinitionsBundle/Setter/ObjectbrickSetter.php b/src/DataDefinitionsBundle/Setter/ObjectbrickSetter.php index 1808f8ef..da5d4bc3 100644 --- a/src/DataDefinitionsBundle/Setter/ObjectbrickSetter.php +++ b/src/DataDefinitionsBundle/Setter/ObjectbrickSetter.php @@ -50,7 +50,7 @@ public function set(SetterContextInterface $context) $brickFieldObject = $brick->$brickClassGetter(); if (!$brickFieldObject instanceof AbstractData) { - $brickFieldObjectClass = 'Pimcore\Model\DataObject\Objectbrick\Data\\' . $class; + $brickFieldObjectClass = 'Pimcore\Model\DataObject\Objectbrick\Data\\' . ucfirst($class); $brickFieldObject = new $brickFieldObjectClass($context->getObject()); @@ -90,7 +90,7 @@ public function get(GetterContextInterface $context) $brickFieldObject = $brick->$brickClassGetter(); if (!$brickFieldObject instanceof AbstractData) { - $brickFieldObjectClass = 'Pimcore\Model\DataObject\Objectbrick\Data\\' . $class; + $brickFieldObjectClass = 'Pimcore\Model\DataObject\Objectbrick\Data\\' . ucfirst($class); $brickFieldObject = new $brickFieldObjectClass($context->getObject());