View more context

 

dorsetdigital

I'm not sure what the effect of just typecasting it would be: eg $doArray = (array) $DataObject;

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