[TYPO3-mvc] Re: Removing all FEUsergroups for a particular FEUser
Nicolas Owassapian
owa at gmx.net
Tue Jul 19 13:28:57 CEST 2016
use a clone of the object storage ...
check out:
https://forum.typo3.org/index.php/t/153588/#page_top (Franz Koch Tue, 26 July 2011 10:37)
or
https://gist.github.com/benjaminrau/4721948
e.g.
$groupObjectStorage = $user->getUsergroup();
$groupObjectStorage->removeAll(clone $groupObjectStorage);
Cheers
Nico
More information about the TYPO3-project-typo3v4mvc
mailing list