Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Uid] Added toHexString method to AbstractUid class#45939
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for the PR.
This relates to#42966. In order to completely implement the issue, we should also patch theuuid:inspect anduuid:inspect commands to display that number.
This is a new feature so it should target branch 6.1.
| /** | ||
| * Returns the identifier as a prefixed hexadecimal case insensitive string. | ||
| */ | ||
| publicfunctiontoHexString():string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
toHex() to be enough and better to me
I had to open new PR because source branch has changed#45945 |
…urimasniekis)This PR was merged into the 6.2 branch.Discussion----------[Uid] Added toHexString method to AbstractUid class| Q | A| ------------- | ---| Branch? | 6.1| Bug fix? | no| New feature? | yes| Deprecations? | no| Fix |#42966| License | MITAdded a small method to Uid component `AbstractUid` class called `toHex` which would output binary value of identifier as prefixed hex string for e.g. `0x0000000`. This is really useful when using with Doctrine for Id generation as the storage of Uid is a binary format in the database, and in most cases, it is usually used with hex format to query it.This PR is from#45939 as I needed to change the source branch to 6.1Commits-------dad28d6 Added toHexString method to AbstractUid class
Uh oh!
There was an error while loading.Please reload this page.
Added a small method to Uid component
AbstractUidclass calledtoHexStringwhich would output binary value of identifier as prefixed hex string for e.g.0x0000000. This is really useful when using with Doctrine for Id generation as the storage of Uid is a binary format in the database, and in most cases, it is usually used with hex format to query it.