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 features beforeUpdate/afterUpdate #4783

Closed
bughp opened this issue May 24, 2018 · 3 comments
Closed

Add features beforeUpdate/afterUpdate #4783

bughp opened this issue May 24, 2018 · 3 comments

Comments

@bughp
Copy link

bughp commented May 24, 2018

  1. image

  2. How can i use messageQueue ?

@bughp bughp changed the title Add features English Add features beforeUpdate/afterUpdate May 24, 2018
@flovilmart
Copy link
Contributor

@bughp we won't add beforeUpdate as those are exactly the same as beforeSave with an existing object.

The message queue is used internally, and you may not need it.

@bughp
Copy link
Author

bughp commented May 27, 2018

Thank you very much for your reply. BeforeUpdate/afterUpdate and message queues must be used in the project. Can you tell me how the message queue is used? Why did beforeUpdate/afterUpdate modify the entry of beforeSave/afterSave? What is the reason for this? Thank you very much.

@flovilmart
Copy link
Contributor

Again, you don’t need beforeUpdate/afterUpdate, just use beforeSave and afterSave.

After that, you should turn to stack overflow for code/implementation related questions, we use github for issues.

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

2 participants