public function postPersist(LifecycleEventArgs $args)
    {
        $entity = $args->getObject();
        if ($entity instanceof PackageVersionEntity) {
            $this->refreshPackageLatestVersion($args->getObjectManager(), $entity->getPackage());
        }
    }
public function postPersist(LifecycleEventArgs $args)
    {
        $entity = $args->getObject();
        if ($entity instanceof PackageVersionEntity) {
            $this->refreshPackageLatestVersion($args->getObjectManager(), $entity->getPackage());
        }
    }
public function postPersist ( LifecycleEventArgs $ args ) { $ entity = $ args -> getObject ( ) ; if ( $ entity instanceof PackageVersionEntity ) { $ this -> refreshPackageLatestVersion ( $ args -> getObjectManager ( ) , $ entity -> getPackage ( ) ) ; } }
Callback method called when a new entity has been saved.

@param LifecycleEventArgs $args
Callback method called when a new entity has been saved .