67 protected function createEntity($entity, array $params = []): ?Core\
Base\EntityInterface
69 $data = $this->convertToArray($entity);
71 $result = EventConnectionTable::add($data);
72 if ($result->isSuccess())
74 return $entity->setId($result->getId());
78 . implode(
'; ', $result->getErrorMessages()),
93 protected function updateEntity($entity, array $params = []): ?Core\
Base\EntityInterface
95 $data = $this->convertToArray($entity);
97 $result = EventConnectionTable::update($entity->getId(), $data);
99 if ($result->isSuccess())
105 . implode(
'; ', $result->getErrorMessages()),
159 if ($objectEO->getEvent() ===
null || $objectEO->getConnection() ===
null)
170 ->setLastSyncStatus($objectEO->getSyncStatus())
171 ->setRetryCount($objectEO->getRetryCount())
172 ->setVersion((
int)$objectEO->getVersion())
173 ->setVendorEventId($objectEO->getVendorEventId())
174 ->setEntityTag($objectEO->getEntityTag())
175 ->setRecurrenceId($objectEO->getRecurrenceId())
176 ->setVendorVersionId($objectEO->getVendorVersionId())
177 ->setId($objectEO->getId())
178 ->setData($objectEO->getData())
180 ->setConnection($connection)