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