SHARE
TWEET

Untitled

a guest Jun 25th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $entity = $this->galleryManager->findByLink($link);
  2.  
  3.  
  4.                 $entity->getSeoMetadata()->setTitle($metaTitle);
  5.                 $entity->getSeoMetadata()->setMetaDescription($metaDescription);
  6.                 $entity->getSeoMetadata()->setMetaKeywords($metaKeywords);
  7.  
  8.                 $em->persist($entity);
  9.                 $em->flush();
  10.      
  11. $entity = $this->galleryManager->findByLink($link);
  12.  
  13.  
  14.                 $entity->getSeoMetadata()->setTitle($metaTitle);
  15.                 $entity->getSeoMetadata()->setMetaDescription($metaDescription);
  16.                 $entity->getSeoMetadata()->setMetaKeywords($metaKeywords);
  17.  
  18.                 $entity->setSeoMetadata(clone $entity->getSeoMetadata());
  19.  
  20.                 $em->persist($entity);
  21.                 $em->flush();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top