View more context

 

dorsetdigital

I can't think of a nice way to do it. I usually just use the Object if I'm working in PHP code

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)

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?