Skip to content

[Bug]: Command pimcore:build:classes requires DB connection for certain data-types #196

Description

@brusch

Improvement description

pimcore:build:classes is intendet to be used for CI during build step and therefore should work without a database connection.
Actually there are some data-types at the moment that require a DB, mostly variants of the select data-type.

The actual problem is when calling configureOptions() e.g. here:
https://github.com/pimcore/pimcore/blob/3ffaeac8d9f07f877ea4f469015be1774de447b9/models/DataObject/ClassDefinition/Data/Language.php#L73

If in this case, e.g. the system-config is stored in the settings-store (like in the demos) it tries to load the available languages from the database.
But the same also happens with other data-types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Affected capability

    None yet

    Platform Version

    None yet

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions