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
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 |
|||
) |