Skip to content

Commit

Permalink
support Unique constraint as attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan committed Oct 14, 2021
1 parent deeeff0 commit b1a4af7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Validator/Constraints/Unique.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* Constraint for the unique document validator
*
* @Annotation
* @Target({"CLASS", "ANNOTATION"})
*/
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE)]
class Unique extends UniqueEntity
{
/** @var string */
Expand Down

0 comments on commit b1a4af7

Please sign in to comment.