View more context

 

rista

I want to check if data passed from the user is different than the current object (with all relations)

rista

and I though by comparing two arrays

dorsetdigital

See what happens when you just cast it as above. It might be enough for what you need

rista

it might help but it need some additional parsing 🙂

dorsetdigital

Are you doing these checks in the CMS? Are you aware of the isChanged() methods?

rista

and yes I'm aware of isChanged and getChangedFields but I need some additional information

rista

and also I need to update that instance in order to check if it's changed