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

[DoctrineBridge]  fix setting validated fields not using the options array #54835

Merged
merged 1 commit into from May 15, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 3, 2024

Q A
Branch? 7.1
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

@carsonbot carsonbot added this to the 7.1 milestone May 3, 2024
@carsonbot carsonbot changed the title [DoctrineBridge] fix setting validated fields not using the options array [DoctrineBridge]  fix setting validated fields not using the options array May 3, 2024
@@ -951,6 +951,40 @@ public function rewind(): void
}

public function testValidateDTOUniqueness()
{
$constraint = new UniqueEntity(
Copy link
Contributor

Choose a reason for hiding this comment

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

The body of those tests is the same, only constraint is different. The dataProvider should be used. This approach is already used in the UniqueEntityValidatorTest::provideConstraintsWithCustomRepositoryMethod.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wrote the tests this way on purpose so that we don't have to rewrite them for Symfony 7.2 in #54744

@xabbuh xabbuh merged commit 744e54b into symfony:7.1 May 15, 2024
9 of 10 checks passed
@xabbuh xabbuh deleted the pr-38662 branch May 15, 2024 08:45
@fabpot fabpot mentioned this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants