23 foreach (
$params as $index=>$param)
27 $relation = static::loadRelation($index, $deal->getSrcEntityTypeId(), $deal->getDstEntityTypeId());
28 $dealId = $relation->getDestinationEntityId();
33 'SUBJECT' => static::getNamingEntity([
'ID'=>$relation->getSourceEntityId()]),
34 'OWNER_TYPE_ID' => $relation->getDestinationEntityTypeId(),
35 'OWNER_ID' => $relation->getDestinationEntityId(),