if ($result->
getOperation() === EntityWriteResult::OPERATION_INSERT
) { continue;
} $changeSet =
$result->
getChangeSet();
if (!
$changeSet) { continue;
} $type =
$changeSet->
getBefore('type'
);
if ($type !== LineItem::PRODUCT_LINE_ITEM_TYPE
) { continue;
} if (!
$changeSet->
hasChanged('referenced_id'
) && !
$changeSet->
hasChanged('quantity'
)) { continue;
} $ids[] =
$changeSet->
getBefore('referenced_id'
);
$ids[] =
$changeSet->
getAfter('referenced_id'
);
}