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
I think the documentation https://symfony.com/doc/current/components/uid.html also needs updating. as it says "There is no generator to assign UUIDs automatically as the value of your entity primary keys, but you can use the following" which is unexpected, considering there is the UuidGenerator::class, even though it seems to only generate V6 UUIDs.
heuristicservices
changed the title
UuidGenerator::class generates Symfony\\Component\\Uid\\UuidV6 with default_uuid_version: 4
UuidGenerator::class generates Symfony\Component\Uid\UuidV6 with default_uuid_version: 4
Jan 6, 2022
This PR was merged into the 5.4 branch.
Discussion
----------
[Uid] Update uid.rst
Reference symfony/symfony#44938 (comment)
<!--
If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/releases for the list of maintained branches).
If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `6.x` for features of unreleased versions).
-->
Commits
-------
91872e4 Update uid.rst
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected
5.4.2
Description
Given a User entity (for demonstration purposes, not related to security) annotated with
And the framework.yml configured with
Then doctrine will unexpectedly enter a UuidV6 UUID.
The article https://symfony.com/blog/new-in-symfony-5-3-uid-improvements suggests that once configured, this should be UuidV4.
I think the documentation https://symfony.com/doc/current/components/uid.html also needs updating. as it says "There is no generator to assign UUIDs automatically as the value of your entity primary keys, but you can use the following" which is unexpected, considering there is the UuidGenerator::class, even though it seems to only generate V6 UUIDs.
Thank you.
How to reproduce
An example demonstrating the issue is here: https://github.com/heuristicservices/symfony-uuid
Run
Migrate with
Navigating to
will add some users.
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: