EntityAccessAttributeTable::deleteByEntity

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityAccessAttributeTable
  4. deleteByEntity
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/security/accessattribute/entityaccessattributetable.php
  • Класс: Bitrix\Crm\Security\AccessAttribute\EntityAccessAttributeTable
  • Вызов: EntityAccessAttributeTable::deleteByEntity
static function deleteByEntity(int $entityID)
{
	if ($entityID <= 0)
	{
		throw new Main\ArgumentException('Must be greater than zero.', 'entityID');
	}
	$tableName = static::getTableName();

	$connection = Main\Application::getConnection();
	$connection->queryExecute(
		"DELETE FROM {$tableName} WHERE ENTITY_ID = {$entityID}"
	);
}

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