mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Using Uuid type in entity #6619
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shubaivan on GitHub (Feb 2, 2021).
I using
and my goal provide uuid property for my table. I followed to documentation and faced with this error when executed doctrine migration diff
then I checked available types
all types belongs to dbal extension
then I found uuid type class in doctrine-bundle and added in to doctrine conf
I guess it's not obviously, maybe this part should be in symfony doc.
my question where is guarantee which uuid will be uniq, I mean maybe should be some method for check if current uuid present in table then need to generate new and check again ?
I did not found somethng about that in
this is migration sql what I got from migration diff
@BackEndTea commented on GitHub (Mar 19, 2021):
The chance of a uuid being duplicate is there, but it is extremely small.
This stackoverflow question (and answer) may provide some insight: https://stackoverflow.com/questions/1155008/how-unique-is-uuid