/**
  * Load data fixtures with the passed EntityManager
  *
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $catalogCSGMKT = new CatalogEntity();
     $catalogCSGMKT->setCatalogName('CSGMKT');
     $catalogCSGMKT->setStoreId(1);
     $catalogCSGMKT->setShopifyCollectionId(0);
     $manager->persist($catalogCSGMKT);
     $manager->flush();
 }
 /**
  * @param StoreEntity $store
  * @param CatalogEntity $catalog
  */
 public function createCollection(StoreEntity $store, CatalogEntity $catalog)
 {
     $this->setSettings($store);
     $response = $this->client->createCustomCollection(['custom_collection' => ['title' => $catalog->getCatalogName()]]);
     $catalog->setShopifyCollectionId($response['custom_collection']['id']);
 }