• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/recycling/dynamicbindermanager.php
  • Класс: Bitrix\Crm\Recycling\DynamicBinderManager
  • Вызов: DynamicBinderManager::unbindEntities
public function unbindEntities(array $slots): void
{
	$this->checkConfigure();

	foreach ($this->dynamicTypes as $type)
	{
		$entityTypeId = $type->getEntityTypeId();

		if (empty($slots[$this->compileSlotKey($entityTypeId)]))
		{
			continue;
		}

		DynamicBinder::getInstance($entityTypeId)->unbindEntities(
			$this->getAssociatedEntityTypeId(),
			$this->getEntityId(),
			$slots[$this->compileSlotKey($entityTypeId)]
		);
	}
}