30 if(!empty($parentEntityContext))
41 return Exchange\EntityType::UNDEFINED;
74 protected function loadParentEntity(array
$fields)
83 $orderClass = $registry->getOrderClassName();
131 $this->collisionErrors =
true;
135 $this->collisionWarnings =
true;
141 $this->collisions[] = $collision;
157 return (count($this->collisions));
163 public function markedEntityCollisions(
$collisions)
177 $entity->setField(
'MARKED',
'Y');
178 $this->marked =
true;
180 $collisionEntity = $collision->getEntity();
181 if(!empty($collisionEntity))
199 EntityMarker::addMarker($order,
$entity, $result);
215 return $this->getEntityId();
233 public function import(array $params)
235 $result = parent::import($params);
236 if($result->isSuccess())
240 $this->marked(
$entity, $params[
'TRAITS']);
248 abstract public function save();
261 $entity->setField(
'UPDATED_1C',
'Y');
265 $entity->setField(
'VERSION_1C',
$fields[
'VERSION_1C']);
282 public function getEntityId()
300 return is_int($id) && $id > 0;
314 return Exchange\EntityType::UNDEFINED;