Skip to content

Cannot create an entity named 'Directory' #1675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zer0NimO-web opened this issue Mar 19, 2025 · 0 comments · May be fixed by #1676
Open

Cannot create an entity named 'Directory' #1675

Zer0NimO-web opened this issue Mar 19, 2025 · 0 comments · May be fixed by #1676

Comments

@Zer0NimO-web
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant