Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Cannot find YML metadata when using a trailing slash for namespace #97

@robinkanters

Description

@robinkanters

I was pointing the serializer to the metadata by calling this:

$serializerBuilder->addMetadataDir($metadataDir, "Ns1\\Ns2\\");

Which causes the serializer to cut off the first letter of the class name:

/path/to/project/src/Ns1/Ns2/Metadata/roduct.yml

...while it should be...

/path/to/project/src/Ns1/Ns2/Metadata/Product.yml

It does this in lines 32-33 of Metadata\Driver\FileLocator

Workaround: call addMetadataDir without a trailing namespace slash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions