Skip to content

Generating Entities or edit Entities #59

@HashtagAssist

Description

@HashtagAssist

PHP Version

8.1

Shopware Version

6.4.20.1

Actual behaviour

While trying to create an entity I got the error "Warning: Uninitialized string offset 0 " in EntityLoader.php line 201

Expected behaviour

Start Wizard

Steps to Reproduce?

While trying to create an entity I got the error "Warning: Uninitialized string offset 0 " in EntityLoader.php line 201. After a vardump of InputInterface from MakeDefinition.php line 74 I saw that there the backslashes were removed from the string. A Google search led me to the issue symfony/symfony#31046 .
This seems to be the normal behaviour. I had to use 4 backslashes: My\\Namespace\\SomeDefinition.

I use the VSCode terminal on Windows (WSL) with Shopware in a ddev/docker container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions