diff --git a/CHANGELOG b/CHANGELOG index 05a5966..3d5d468 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,7 @@ * Feature: (SF6.2+) Supports automatic value resolving in controllers (with or without MapEntity), see [https://github.com/symfony/symfony/blob/7.2/src/Symfony/Bridge/Doctrine/ArgumentResolver/EntityValueResolver.php](Doctrine Bridge) * Feature: supports serializer options in attributes * Feature: Support UserProvider + * The constraint "UniqueEntity" can now be used with an attribute on your class 3.8.2 (2025-01-09): * Fix: better detection for Uuid subclasses in autowiring diff --git a/src/TingBundle/Validator/Constraints/UniqueEntity.php b/src/TingBundle/Validator/Constraints/UniqueEntity.php index d4c65e2..a666f60 100644 --- a/src/TingBundle/Validator/Constraints/UniqueEntity.php +++ b/src/TingBundle/Validator/Constraints/UniqueEntity.php @@ -32,6 +32,7 @@ * @Annotation * @Target({"CLASS", "ANNOTATION"}) */ +#[\Attribute(\Attribute::TARGET_CLASS)] class UniqueEntity extends Constraint { /**