Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Fixed entity exists and not validators work correctly with composite constraints.
issue: NEXT-16566
author: Andreas Allacher
author_email: [email protected]
author_github: @AndreasA
---
- Changed
EntityExistsValidator
andEntityNotExistsValidator
to work in combination with composite constraints like Symfony'sAll
constraint by cloning the criteria object. - Changed
EntityNotExistsValidator
to only be valid, if the expected entity does not exist. - Changed
EntityExistsValidator
andEntityNotExistsValidator
to only include one entity in the result as that is enough to determine exists for nonid
property searches.