string getDefaultOption() Returns the name of the default option. Override this method
array getRequiredOptions() Returns the name of the required options. Override this method
class UniqueEntity extends Constraint
string validatedBy() The validator must be defined as a service with this name.
class UniqueEntityValidator extends
string|array getTargets() Returns whether the constraint can be put onto classes, properties