Neos.Neos/Classes/Domain/Service/UserService.php
protected function removeOwnerFromUsersWorkspaces(User $user)
    {
        /** @var Workspace $workspace */
        foreach ($this->workspaceRepository->findByOwner($user) as $workspace) {
            $workspace->setOwner(null);
            $this->workspaceRepository->update($workspace);
        }
    }
protected function removeOwnerFromUsersWorkspaces(User $user)
    {
        /** @var Workspace $workspace */
        foreach ($this->workspaceRepository->findByOwner($user) as $workspace) {
            $workspace->setOwner(null);
            $this->workspaceRepository->update($workspace);
        }
    }
protected function removeOwnerFromUsersWorkspaces ( User $ user ) { /** @var Workspace $workspace */ foreach ( $ this -> workspaceRepository -> findByOwner ( $ user ) as $ workspace ) { $ workspace -> setOwner ( null ) ; $ this -> workspaceRepository -> update ( $ workspace ) ; } }
Removes ownership of all workspaces currently owned by the given user

@param User $user The user currently owning workspaces
@return void
Removes ownership of all workspaces currently owned by the given user