Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Closed
aurimasniekis wants to merge1 commit intosymfony:6.1fromaurimasniekis:5.4

Conversation

@aurimasniekis
Copy link
Contributor

@aurimasniekisaurimasniekis commentedApr 4, 2022
edited by nicolas-grekas
Loading

QA
Branch?6.1
Bug fix?no
New feature?yes
Deprecations?no
Fix#42966
LicenseMIT

Added a small method to Uid componentAbstractUid class calledtoHexString 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.

Copy link
Member

@nicolas-grekasnicolas-grekas left a 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

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

fancyweb reacted with thumbs up emoji
@aurimasniekis
Copy link
ContributorAuthor

I had to open new PR because source branch has changed#45945

fabpot added a commit that referenced this pull requestJul 20, 2022
…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
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

6.1

Development

Successfully merging this pull request may close these issues.

3 participants

@aurimasniekis@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp