Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Check if Member Groups has changed after save


Go to End


1068 Views

Avatar
Jellygnite

Community Member, 12 Posts

3 December 2014 at 8:31pm

I am trying to determine if the administrator has modified a member's groups e.g added or removed a Group.
I have extended Member with a DataExtension but $this->owner->isChanged('Groups') always returns false when I check it in onBeforeWrite or onAfterWrite
Does anyone have any idea how to get this?

Thanks.