public function set($offset, ConstraintViolation $violation) { $this->violations[$offset] = $violation; }
/** * {@inheritdoc} */ public function set($offset, ConstraintViolationInterface $violation) { parent::set($offset, $violation); $this->violationOffsetsByField = NULL; $this->entityViolationOffsets = NULL; }