• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/StorageStrategy/Factory.php
  • Класс: Bitrix\Crm\Relation\StorageStrategy\Factory
  • Вызов: Factory::__construct
public function __construct(Service\Factory $childFactory, string $parentIdFieldName)
{
	if (!$childFactory->isFieldExists($parentIdFieldName))
	{
		throw new ArgumentException(
			'The provided field does not exist in ' . get_class($childFactory), 'fieldName'
		);
	}

	$this->childFactory = $childFactory;
	$this->parentIdFieldName = $parentIdFieldName;
}