23552 Posts in 19349 Topics by 2891 members
|Go to End|
11 February 2011 at 4:42am
I can add a member to 'GroupX' like this:
How can I remove a member from 'GroupX'?
11 February 2011 at 9:42pm
According to 'cms/code/MemberTableField.php':
$member = DataObject::get_by_id('Member', $memberID);
12 February 2011 at 1:47am
Thanks! How can I remove the $groupID for the group named "GroupX"?
12 February 2011 at 1:58am
I *think* you are able to put a where clause in the relationship getter...
12 February 2011 at 2:03am
swaiba, your code still uses $groupID but I don't know the $groupID.
12 February 2011 at 2:08am
$doGroup = DataObject::get_one('Group',"Name='GroupX'");
|Go to Top|