public function postPersist()
    {
        if ($this->lifecycleEventsActive) {
            $collection = $this->resourceManager->getCollection($this->collectionName);
            $collection->getTarget()->publishResource($this, $collection);
        }
    }
public function postPersist()
    {
        if ($this->lifecycleEventsActive) {
            $collection = $this->resourceManager->getCollection($this->collectionName);
            $collection->getTarget()->publishResource($this, $collection);
        }
    }
public function postPersist ( ) { if ( $ this -> lifecycleEventsActive ) { $ collection = $ this -> resourceManager -> getCollection ( $ this -> collectionName ) ; $ collection -> getTarget ( ) -> publishResource ( $ this , $ collection ) ; } }
Doctrine lifecycle event callback which is triggered on "postPersist" events.
This method triggers the publication of this resource.

@return void
@ORM\PostPersist
Doctrine lifecycle event callback which is triggered on postPersist events . This method triggers the publication of this resource .