Skip to content

Filter fields #110

@dozsan

Description

@dozsan

The point is that the audit log should be able to save not all fields in all cases

class Entity {
    private string $field1;
    private string $field2;
    private string $field3;
    private string $field4;
}

If default - Here we went to every field

data_dog_audit:
    audited_entities:
        App\Entity\Entity: ~

If mode include - Here we save only the fields field1, field2, field3

data_dog_audit:
    audited_entities:
        App\Entity\Entity:
            mode: 'include'
            fields:
                - field1
                - field2
                - field3

If mode exclude - Here we exclude field4

data_dog_audit:
    audited_entities:
        App\Entity\Entity:
            mode: 'exclude'
            fields:
                - field4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions