/**
  * {@inheritdoc}
  */
 protected function beforeProcessEntity($entity)
 {
     if ($this->logger) {
         $this->logger->info('Syncing GitHub issue [origin_id=' . $entity->getRemoteId() . ']');
     }
     return parent::beforeProcessEntity($entity);
 }
 /**
  * {@inheritdoc}
  */
 protected function beforeProcessEntity($entity)
 {
     if ($entity instanceof OriginAwareInterface) {
         /** @var Channel $channel */
         $channel = $this->databaseHelper->getEntityReference($entity->getChannel());
         $this->ownerHelper->populateChannelOwner($entity, $channel);
     }
     return parent::beforeProcessEntity($entity);
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 protected function beforeProcessEntity($entity)
 {
     /** @var Contact $entity */
     $entity = parent::beforeProcessEntity($entity);
     // need to manually set empty types to skip merge from existing entities
     $itemData = $this->context->getValue('itemData');
     if (!empty($itemData['addresses'])) {
         foreach ($itemData['addresses'] as $key => $address) {
             if (!isset($address['types'])) {
                 $itemData['addresses'][$key]['types'] = array();
             }
         }
         $this->context->setValue('itemData', $itemData);
     }
     return $entity;
 }
 /**
  * @param ProductPrice $entity
  * @return ProductPrice
  */
 protected function beforeProcessEntity($entity)
 {
     $this->refreshPrice($entity);
     $this->loadProduct($entity);
     return parent::beforeProcessEntity($entity);
 }