Unique Class Reference

Detailed Description

Unique checks if the value is unique regarding the given entity attribute.

Configuration examples:

// ensure Keyword.name is unique
unique:{"type":"Keyword","value":"name"}
// or without options when used in entity context
unique
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 32 of file Unique.php.

+ Inheritance diagram for Unique:

Public Member Functions

 validate ($value, $options=null, $context=null)
 

Member Function Documentation

◆ validate()

validate (   $value,
  $options = null,
  $context = null 
)
See also
ValidateType::validate

Implements ValidateType.

Definition at line 37 of file Unique.php.