src/Sulu/Component/Content/Document/Subscriber/Compat/ContentMapperSubscriber.php
public function handlePersist(PersistEvent $event)
    {
        if (!$this->supports($event->getDocument())) {
            return;
        }

        $this->persistEvents[] = $event;
    }
public function handlePersist(PersistEvent $event)
    {
        if (!$this->supports($event->getDocument())) {
            return;
        }

        $this->persistEvents[] = $event;
    }
public function handlePersist ( PersistEvent $ event ) { if ( ! $ this -> supports ( $ event -> getDocument ( ) ) ) { return ; } $ this -> persistEvents [ ] = $ event ; }
Saves all persisted documents to dispatch the deprecated post save event later when flushed.

@param PersistEvent $event
Saves all persisted documents to dispatch the deprecated post save event later when flushed .