Skip to content

Feature: add a new event for many-to-many relationships#498

Open
andrestejerina97 wants to merge 1 commit intomainfrom
feature/new-event-for-formatters
Open

Feature: add a new event for many-to-many relationships#498
andrestejerina97 wants to merge 1 commit intomainfrom
feature/new-event-for-formatters

Conversation

@andrestejerina97
Copy link
Contributor

@andrestejerina97 andrestejerina97 commented Feb 11, 2026

@andrestejerina97 andrestejerina97 force-pushed the feature/new-event-for-formatters branch 2 times, most recently from ffb0da8 to e142976 Compare February 13, 2026 19:22
@andrestejerina97 andrestejerina97 marked this pull request as ready for review February 18, 2026 14:02
@andrestejerina97 andrestejerina97 force-pushed the feature/new-event-for-formatters branch 2 times, most recently from e5584c1 to 1613295 Compare February 18, 2026 18:01
@andrestejerina97 andrestejerina97 force-pushed the feature/new-event-for-formatters branch from 1613295 to bd0d027 Compare February 18, 2026 18:02
@andrestejerina97
Copy link
Contributor Author

@martinquiroga-exo ready to review

Copy link
Contributor

@martinquiroga-exo martinquiroga-exo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

];

$eventType = $isManyToMany
? ($isDeletion ? IAuditStrategy::EVENT_COLLECTION_MANYTOMANY_DELETE : IAuditStrategy::EVENT_COLLECTION_MANYTOMANY_UPDATE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this concatenated ternary operators, perhaps I would like to see an exit early guard clause when the event is an EVENT_COLLECTION_UPDATE.

I defer to Casey on this one since is a design issue rather than an implementation one.

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

Comments