Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:user] handle ORM\Column.unique deprecation - use ORM\UniqueConstrain #1460

Conversation

maelanleborgne
Copy link
Contributor

As a result of doctrine/dbal#5656, we should stop using the unique property of the ORM\Column attribute in the make:user command and prefer the ORM\UniqueConstraint.

This PR should solve this problem 🙂

Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! a minor comment

src/Security/UserClassBuilder.php Outdated Show resolved Hide resolved
@jrushlow jrushlow added Feature New Feature Status: Needs Work Additional work is needed labels Feb 27, 2024
@jrushlow jrushlow changed the title [make:user] Replace the use of ORM\Column.unique by ORM\UniqueConstrain [make:user] handle ORM\Column.unique deprecation - use ORM\UniqueConstrain Feb 27, 2024
@maelanleborgne maelanleborgne force-pushed the feature/remove-unique-from-user-identifier branch from 7c297fa to b4b9710 Compare February 27, 2024 15:37
Co-authored-by: Jesse Rushlow <40327885+jrushlow@users.noreply.github.com>
@maelanleborgne maelanleborgne force-pushed the feature/remove-unique-from-user-identifier branch from b4b9710 to 0999c89 Compare February 27, 2024 17:32
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you @maelanleborgne

@jrushlow jrushlow added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Work Additional work is needed labels Feb 27, 2024
@jrushlow jrushlow merged commit cdcd168 into symfony:main Feb 27, 2024
6 checks passed
@jrushlow jrushlow mentioned this pull request Mar 4, 2024
@maelanleborgne maelanleborgne deleted the feature/remove-unique-from-user-identifier branch April 10, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants