Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter fields #110

Open
dozsan opened this issue Sep 19, 2024 · 0 comments
Open

Filter fields #110

dozsan opened this issue Sep 19, 2024 · 0 comments

Comments

@dozsan
Copy link

dozsan commented Sep 19, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant