Symfony\Component\Validator\ConstraintViolationList::remove PHP Method

remove() public method

Removes a violation at a given offset.
public remove ( integer $offset )
$offset integer The offset to remove.
    public function remove($offset)
    {
        unset($this->violations[$offset]);
    }

Usage Example

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