Skip to content

Cannot create an entity named 'Directory' #1675

Open
@Zer0NimO-web

Description

@Zer0NimO-web

API Platform version(s) affected: 4.1.1

Description
I started a project using api-platform one year ago. Inside this project i created an entity called Directory.
I had no issue using this name at the time. Nowadays i cannot use the command :

php bin/console make:entity Directory

The result is :
Your entity already exists! So let's add some new fields!

In FileManager.php line 111:

Notice: file_get_contents(): Read of 8928 bytes failed with errno=21 Is a directory

How to reproduce
Clone latest api-platform, run :

docker compose build --no-cache

and then

docker compose up --wait

Go inside app-php container and run :

php bin/console m:e Directory

To me, it seems like a regression, but I cannot be certain. I hope there is a workaround. Thanks a lot for your time.

Possible Solution
None.

Additional Context

Image

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