src/Synapse/Validator/Constraints/BelongsToEntityValidator.php
protected function addViolation($value, Constraint $constraint)
    {
        $this->context->addViolation(
            $constraint->message,
            [
                '{{ id_field }}' => $constraint->getIdField(),
                '{{ value }}'    => $value
            ],
            $value
        );
    }
protected function addViolation($value, Constraint $constraint)
    {
        $this->context->addViolation(
            $constraint->message,
            [
                '{{ id_field }}' => $constraint->getIdField(),
                '{{ value }}'    => $value
            ],
            $value
        );
    }
protected function addViolation ( $ value , Constraint $ constraint ) { $ this -> context -> addViolation ( $ constraint -> message , [ '{{ id_field }}' => $ constraint -> getIdField ( ) , '{{ value }}' => $ value ] , $ value ) ; }
Add violation with error message

@param $value
Add violation with error message