Factory::areItemsBound

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Factory
  4. areItemsBound
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/StorageStrategy/Factory.php
  • Класс: Bitrix\Crm\Relation\StorageStrategy\Factory
  • Вызов: Factory::areItemsBound
public function areItemsBound(ItemIdentifier $parent, ItemIdentifier $child): bool
{
	$item = $this->childFactory->getItem($child->getEntityId());
	if (!$item)
	{
		return false;
	}

	return ($item->get($this->parentIdFieldName) === $parent->getEntityId());
}

Добавить комментарий