This is especially useful if some component directly writes on nodes without using documents and drafting. It will guarantee that the data will be available on both workspaces.
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function remove($webspaceKey, $key)
 {
     $propertyName = $this->getPropertyName($key);
     $this->sessionManager->setNodeProperty($this->deprecatedSessionManager->getWebspacePath($webspaceKey), $propertyName, null);
     $this->sessionManager->flush();
 }