laravel-mongodb
laravel-mongodb copied to clipboard
Fix incorrect behaviour when comparing castable attributes in `originalIsEquivalent` method
Hello,
Found issue, when I'm using custom cast on attribute and save data in object type this attribute every time appeared in getDirty list.
This behaviour because of ignoring custom casts in originalIsEquivalent.
Hi @GromNaN, Can you look at my PR, pls?