Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Add documentation for enum property.rst#20887
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
A note and an example class for the enum type which has an undocumented peculiarity on the path to give
I am not sure I understand what this is trying to clarify. Can you elaborate a bit on your idea? |
When adding an enum type property, you must put a path and not just the name of the entity as for relationships for example. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
patchsCo-authored-by: Oskar Stark <oskarstark@googlemail.com>
I also don't get it. Thanks for proposing, feel free to explain and reopen this issue. |
cadot-eu commentedJul 2, 2025 • edited by OskarStark
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by OskarStark
Uh oh!
There was an error while loading.Please reload this page.
When we create an entity and we want to add an enum type we have no indication that gives an example to add the path while for other types like relationships it asks for the type and there is no need to give the path. This particularity is not documented and for beginners, we can tend to put just State for example instead of putting the complete path without php. Otherwise, perhaps it would be good to impose the path as /app/Entity/Enums and in this case we could search and list the available Enums. |
I am sorry, but I still don't understand. Where in the Doctrine context do you have to add a path? |
|
A note and an example class for the enum type which has an undocumented peculiarity on the path to give