src/Sulu/Component/Content/Document/Subscriber/ShadowCopyPropertiesSubscriber.php
public function copyShadowProperties(AbstractMappingEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($document)) {
            return;
        }

        if (!$event->getDocument()->isShadowLocaleEnabled()) {
            $this->copyToShadows($event->getDocument(), $event->getNode());
        } else {
            $this->copyFromShadow($event->getDocument(), $event->getNode());
        }
    }
public function copyShadowProperties(AbstractMappingEvent $event)
    {
        $document = $event->getDocument();

        if (!$this->supports($document)) {
            return;
        }

        if (!$event->getDocument()->isShadowLocaleEnabled()) {
            $this->copyToShadows($event->getDocument(), $event->getNode());
        } else {
            $this->copyFromShadow($event->getDocument(), $event->getNode());
        }
    }
public function copyShadowProperties ( AbstractMappingEvent $ event ) { $ document = $ event -> getDocument ( ) ; if ( ! $ this -> supports ( $ document ) ) { return ; } if ( ! $ event -> getDocument ( ) -> isShadowLocaleEnabled ( ) ) { $ this -> copyToShadows ( $ event -> getDocument ( ) , $ event -> getNode ( ) ) ; } else { $ this -> copyFromShadow ( $ event -> getDocument ( ) , $ event -> getNode ( ) ) ; } }
Handles persist event of document manager.

@param AbstractMappingEvent $event
Handles persist event of document manager .