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

Add membershipStatus to member revision #157

Merged
merged 1 commit into from
Feb 24, 2024
Merged

Conversation

rrooij
Copy link
Contributor

@rrooij rrooij commented Feb 24, 2024

This way history is kept for changing memberships, which is interesting for viewing membership history over time.

The event listener responsible for this was already implemented in: src/EventSubscriber/EasyAdminEventSubscriber.php as it simply called the constructor of the MemberDetailsRevision and passes a Membership as its argument. Therefore just adding the field, a migration and changing the constructor to add this makes this work.

This way history is kept for changing memberships, which is
interesting to view membership history over time.

The event listener responsible for this was already implemented
in: src/EventSubscriber/EasyAdminEventSubscriber.php as it
simply called the constructor of the MemberDetailsRevision
and passes a Membership as its argument. Therefore just
adding the field, a migration and changing the constructor
to add this makes this work.
@rrooij rrooij force-pushed the feature/add-revision-history branch from 9f0d386 to f982851 Compare February 24, 2024 20:54
@rrooij rrooij merged commit c88c5cb into main Feb 24, 2024
1 check passed
@rrooij rrooij deleted the feature/add-revision-history branch February 24, 2024 21:14
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

Successfully merging this pull request may close these issues.

2 participants