You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I love using Uuids / Ulids as primaries, and I jumped on this feature !
But it looks like it works only if we don't pass any parameters php bin/console make:entity --with-uuid
How to reproduce :
Execute php bin/console make:entity Test --with-uuid ( or php bin/console make:entity Test --with-ulid )
Follow steps to class creation and quit.
This occurs when the symfony/uid package is not installed. It triggers an error when executing bin/console make:entity --with-uuid without parameters, but not when specifying the entity name (e.g., bin/console make:entity --with-uuid Test).
For consistency and clarity, the latter command should probably also trigger the same error ([ERROR] You must install symfony/uid to use UUIDs as "id" (composer require symfony/uid)).
The uid package is correctly installed, and if it was not very clear, it works like a charm when you do not specify the entity.
I pushed a test repository here so it is easy to test : https://github.com/lpotherat/symfony-maker-ulid-test
The uid package is installed and the bug is still there.
I think the consistency bug is not related to the mentionned issue, but it can for sure be addressed 👍
Hi there, I love using Uuids / Ulids as primaries, and I jumped on this feature !
But it looks like it works only if we don't pass any parameters
php bin/console make:entity --with-uuid
How to reproduce :
Execute
php bin/console make:entity Test --with-uuid
( orphp bin/console make:entity Test --with-ulid
)Follow steps to class creation and quit.
Expected :
The id field created like this :
Actual result:
The text was updated successfully, but these errors were encountered: