Doctrine/ORM/Listener/SharingDeleteListener.php
public function postFlush(PostFlushEventArgs $args): void
    {
        if (!empty($this->deleteSharingSubjects) || !empty($this->deleteSharingIdentities)) {
            $this->buildDeleteQuery($args->getEntityManager())->execute();
        }

        $this->deleteSharingSubjects = [];
        $this->deleteSharingIdentities = [];
    }
public function postFlush(PostFlushEventArgs $args): void
    {
        if (!empty($this->deleteSharingSubjects) || !empty($this->deleteSharingIdentities)) {
            $this->buildDeleteQuery($args->getEntityManager())->execute();
        }

        $this->deleteSharingSubjects = [];
        $this->deleteSharingIdentities = [];
    }
public function postFlush ( PostFlushEventArgs $ args ) : void { if ( ! empty ( $ this -> deleteSharingSubjects ) || ! empty ( $ this -> deleteSharingIdentities ) ) { $ this -> buildDeleteQuery ( $ args -> getEntityManager ( ) ) -> execute ( ) ; } $ this -> deleteSharingSubjects = [ ] ; $ this -> deleteSharingIdentities = [ ] ; }
Post flush action.

@param PostFlushEventArgs $args The event
Post flush action .