Skip to content
Discussion options

You must be logged in to vote

Yes, that's correct! It checks the $dirty flag and when it's falsy it exists out and won't attempt to persist nor call the after update/save hooks.

https://github.com/adonisjs/lucid/blob/develop/src/Orm/BaseModel/index.ts#L1782-L1787

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tomgobich
Comment options

Answer selected by theRealPadster
@theRealPadster
Comment options

@tomgobich
Comment options

@theRealPadster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants