private function handlePostPersist()
    {
        if (null !== $this->postFunction) {
            \call_user_func($this->postFunction, $this->environment, $this->model, $this->originalModel);
        }

        $event = new PostPersistModelEvent($this->environment, $this->model, $this->originalModel);
        $this->dispatcher->dispatch($event::NAME, $event);
    }
private function handlePostPersist()
    {
        if (null !== $this->postFunction) {
            \call_user_func($this->postFunction, $this->environment, $this->model, $this->originalModel);
        }

        $event = new PostPersistModelEvent($this->environment, $this->model, $this->originalModel);
        $this->dispatcher->dispatch($event::NAME, $event);
    }
private function handlePostPersist ( ) { if ( null !== $ this -> postFunction ) { \ call_user_func ( $ this -> postFunction , $ this -> environment , $ this -> model , $ this -> originalModel ) ; } $ event = new PostPersistModelEvent ( $ this -> environment , $ this -> model , $ this -> originalModel ) ; $ this -> dispatcher -> dispatch ( $ event :: NAME , $ event ) ; }
Trigger the post persist event and handle the postPersist function if available.

@return void
Trigger the post persist event and handle the postPersist function if available .