-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
latest
Reproduction
Describe the bug
Hi there,
I'm not sure if it is bug.
How to get original data in updating hook?
$getOriginal() works as I expected. After changing .name I can get original name.
In updating hook are model and record args.
Reading model.$getOriginal in this hook return new data.
Second arg record is also new, thus I don't even understand its purpose, when I can get same data with model.$toJson()
So is it bug or how can I get previous data during update proces?
Additional context
No response
Logs
No response
CodeDredd
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working