| @@ 34-41 (lines=8) @@ | ||
| 31 | ->addViolation(); |
|
| 32 | return; |
|
| 33 | } |
|
| 34 | if ($value !== $parameter->getId()) { |
|
| 35 | $this |
|
| 36 | ->context |
|
| 37 | ->buildViolation($constraint->message) |
|
| 38 | ->setParameter('{{ id }}', $parameter->getId()) |
|
| 39 | ->setParameter('{{ name }}', $value) |
|
| 40 | ->addViolation(); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| @@ 40-46 (lines=7) @@ | ||
| 37 | ->addViolation(); |
|
| 38 | return; |
|
| 39 | } |
|
| 40 | if ($type->getId() !== $value) { |
|
| 41 | $context |
|
| 42 | ->buildViolation($constraint->message) |
|
| 43 | ->setParameter('{{ name }}', $value) |
|
| 44 | ->setParameter('{{ id }}', $type->getId()) |
|
| 45 | ->addViolation(); |
|
| 46 | } |
|
| 47 | } |
|
| 48 | } |
|
| 49 | ||