/** * Updates information in CRM about catalog.$assignedUserName * @param CmlCatalog $cmlCatalog */ public function save($cmlCatalog) { $catalogName = $cmlCatalog->getName(); $reference = $this->getReference($catalogName); if ($reference != null) { $this->updateCatalog($reference, $cmlCatalog); } else { $this->createCatalog($cmlCatalog); } }