protected function clearFields()
    {
        // Void all the fields
        foreach (array_keys($this->data) as $fieldName) {
            /** @var FieldCollection $field */
            $field = $this->data[$fieldName];

            $field->clear();
            $field->syncOriginal();
        }
    }
protected function clearFields()
    {
        // Void all the fields
        foreach (array_keys($this->data) as $fieldName) {
            /** @var FieldCollection $field */
            $field = $this->data[$fieldName];

            $field->clear();
            $field->syncOriginal();
        }
    }
protected function clearFields ( ) { // Void all the fields foreach ( array_keys ( $ this -> data ) as $ fieldName ) { /** @var FieldCollection $field */ $ field = $ this -> data [ $ fieldName ] ; $ field -> clear ( ) ; $ field -> syncOriginal ( ) ; } }
Clear all the fields from their content
Clear all the fields from their content