Skip to content

Commit 4b56f8a

Browse files
authored
Fix loading of class with lower case ids (#906)
1 parent 39ebefa commit 4b56f8a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/DataObject/Service/DataObjectService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ private function getValidObjectByClass(string $objectType, string $className): C
295295
throw new InvalidElementTypeException($objectType);
296296
}
297297

298+
// class needs to be upper case for factory
299+
$className = ucfirst($className);
298300
$object = $this->factory->build('Pimcore\\Model\\DataObject\\' . $className);
299301
if (!$object instanceof Concrete) {
300302
throw new DatabaseException(sprintf('Class %s is not a valid data object class', $className));

0 commit comments

Comments
 (0)