Skip to content

Decorator to listen for create and update events on all entities #57

Closed Answered by dragolea
hakimio asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Tomas,
Option1: It should be possible, but probably with the help of a new decorator like EntityHandler which should not point to any entity.

Option 2: Overload on EntityHandler to accept star ( all ) then crate new decorators like AfterCreateAll() AfterUpdateAll() ...

Do you need only for AfterCreate, AfterUpdate all only ?

If we create for After(Create,Update,Read,Delete) then I will implement also for Before and On.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hakimio
Comment options

@dragolea
Comment options

Answer selected by hakimio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants