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