Skip to content

MakeEntity throws ".../src/Entity/" directory does not exist #336

@dtfafard

Description

@dtfafard

When using a different file structure than App/... and setting "root_namespace" to use my new file structure. It works for creating standard entities, but when adding ManyToOne & complex Doctrine Entity Relations, it breaks and throws said error : ".../src/Entity/" directory does not exist

$entityFinder = $this->fileManager->createFinder('src/Entity/')

$entityFinder = $this->fileManager->createFinder('src/Entity/')

I managed to make the code work by removing "Entity" from the "src/Entity" string, but I would rather suggest to use the "root_namespace" or to add a new parameter in the maker.yaml file to handle this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions