Skip to content

[make:entity] Cannot create an entity called "Locale" #1479

Open
@madflow

Description

@madflow

I cannot create an entity called "Locale" on a freshly bootstrapped Symfony project.

symfony new app --version="7.0.*"
cd app
composer require symfony/maker-bundle
composer require symfony/orm-pack
./bin/console make:entity Locale
Your entity already exists! So let's add some new fields!
[critical] Error thrown while running command "make:entity Locale". Message: "Notice: file_get_contents(): Read of 8736 bytes failed with errno=21 Is a directory"

In FileManager.php line 111:

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


make:entity [-a|--api-resource] [-b|--broadcast] [--regenerate] [--overwrite] [--] [<name>]

I would argue, that this should be possible.

I can think of a name collision with the global "Locale" class. https://www.php.net/manual/de/class.locale.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions