View more context

 

Kong Jin Jie

Any recommendation for addon to validate dataobjects?

rista

Hi, is there an option to get an array of DataObject but with all relations. Also fine to only get only ID's of connected relations.

rista

toMap doesn't return everything, I created my own at the end, data collection on object / relations

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)

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?