Skip to content

[Validator] Handle object properties in Unique validator #48951

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

Open
wants to merge 11 commits into
base: 7.4
Choose a base branch
from

Conversation

plfort
Copy link
Contributor

@plfort plfort commented Jan 11, 2023

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #48072
License MIT
Doc PR

Allow Unique constraint to access object properties.

Simple public object properties are handled directly, otherwise we rely on PropertyAccess component to read the value.

This PR is an improvement of #47714

@plfort plfort force-pushed the unique_validator_object branch from 3953218 to c14e90e Compare January 13, 2023 13:15
@nicolas-grekas nicolas-grekas modified the milestones: 6.3, 6.4 May 23, 2023
@norkunas
Copy link
Contributor

would be nice to push this forward.

@plfort plfort force-pushed the unique_validator_object branch from c14e90e to d3acea4 Compare August 15, 2023 13:29
@nicolas-grekas nicolas-grekas modified the milestones: 6.4, 7.1 Nov 15, 2023
@misterxan
Copy link

@plfort can you resolve conflict? We really need this functionality and it would be cool to merge this, thanks in advance!

@xabbuh xabbuh modified the milestones: 7.1, 7.2 May 15, 2024
@plfort plfort force-pushed the unique_validator_object branch from d3acea4 to 6a7c1af Compare July 17, 2024 11:37
@plfort
Copy link
Contributor Author

plfort commented Jul 17, 2024

Rebased on 7.2
Does everything look OK ? @nicolas-grekas

@fabpot fabpot modified the milestones: 7.2, 7.3 Nov 20, 2024
plfort and others added 4 commits March 25, 2025 19:51
Co-authored-by: Alexandre Daubois <2144837+alexandre-daubois@users.noreply.github.com>
@plfort plfort force-pushed the unique_validator_object branch from 5c71b96 to 3f169ad Compare March 25, 2025 19:34
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.

[Validator] Unique constraint can't be applied to collection of object
10 participants