Studio API version
latest
Steps to reproduce
Exception after opening class
{type: "https://tools.ietf.org/html/rfc2616#section-10", title: "An error occurred", status: 500,…}
class
:
"TypeError"
detail
:
"Pimcore\Bundle\StudioBackendBundle\Class\Schema\ClassDefinition::__construct(): Argument #7 ($userOwner) must be of type int, null given, called in /var/www/html/vendor/pimcore/studio-backend-bundle/src/Class/Hydrator/ClassDefinitionHydrator.php on line 33"
status
:
500
title
:
"An error occurred"
The $data->getUserOwner() on the line 40 can return null
https://github.com/pimcore/studio-backend-bundle/blob/v2026.1.0/src/Class/Hydrator/ClassDefinitionHydrator.php#L40
but it is not nullable
https://github.com/pimcore/studio-backend-bundle/blob/v2026.1.0/src/Class/Schema/ClassDefinition.php#L78
So if class has no owner, the exception is thrown.
Actual Behavior
Exception if open class
Expected Behavior
No Exception if open class
Studio API version
latest
Steps to reproduce
Exception after opening class
{type: "https://tools.ietf.org/html/rfc2616#section-10", title: "An error occurred", status: 500,…}
class
:
"TypeError"
detail
:
"Pimcore\Bundle\StudioBackendBundle\Class\Schema\ClassDefinition::__construct(): Argument #7 ($userOwner) must be of type int, null given, called in /var/www/html/vendor/pimcore/studio-backend-bundle/src/Class/Hydrator/ClassDefinitionHydrator.php on line 33"
status
:
500
title
:
"An error occurred"
The $data->getUserOwner() on the line 40 can return null
https://github.com/pimcore/studio-backend-bundle/blob/v2026.1.0/src/Class/Hydrator/ClassDefinitionHydrator.php#L40
but it is not nullable
https://github.com/pimcore/studio-backend-bundle/blob/v2026.1.0/src/Class/Schema/ClassDefinition.php#L78
So if class has no owner, the exception is thrown.
Actual Behavior
Exception if open class
Expected Behavior
No Exception if open class