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