• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/objectify/entityobject.php
  • Класс: BitrixMainORMObjectifyEntityObject
  • Вызов: EntityObject::sysRemoveAllFromCollection
public function sysRemoveAllFromCollection($fieldName)
{
	$fieldName = StringHelper::strtoupper($fieldName);
	$collection = $this->sysFillRelationCollection($fieldName);

	// remove one by one
	foreach ($collection as $remoteObject)
	{
		$this->sysRemoveFromCollection($fieldName, $remoteObject);
	}
}