Neos.ContentRepository/Classes/Domain/Model/Workspace.php
public function initializeObject($initializationCause)
    {
        if ($initializationCause === ObjectManagerInterface::INITIALIZATIONCAUSE_CREATED) {
            $this->rootNodeData = new NodeData('/', $this);
            $this->nodeDataRepository->add($this->rootNodeData);

            if ($this->owner instanceof UserInterface) {
                $this->setOwner($this->owner);
            }
        }
    }
public function initializeObject($initializationCause)
    {
        if ($initializationCause === ObjectManagerInterface::INITIALIZATIONCAUSE_CREATED) {
            $this->rootNodeData = new NodeData('/', $this);
            $this->nodeDataRepository->add($this->rootNodeData);

            if ($this->owner instanceof UserInterface) {
                $this->setOwner($this->owner);
            }
        }
    }
public function initializeObject ( $ initializationCause ) { if ( $ initializationCause === ObjectManagerInterface :: INITIALIZATIONCAUSE_CREATED ) { $ this -> rootNodeData = new NodeData ( '/' , $ this ) ; $ this -> nodeDataRepository -> add ( $ this -> rootNodeData ) ; if ( $ this -> owner instanceof UserInterface ) { $ this -> setOwner ( $ this -> owner ) ; } } }
Initializes this workspace.

If this workspace is brand new, a root node is created automatically.

@param integer $initializationCause
@return void
Initializes this workspace .