• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/database/mesh.php
  • Класс: BitrixTasksInternalsDataBasedeprecated
  • Вызов: deprecated::markEdgeToRemove
static function markEdgeToRemove($from, $to, $decrement = 0)
{
	if($decrement == 0)
	{
		$decrement = 1;
	}

	$idColName = 		static::getIDColumnName();
	$parentIdColName = 	static::getPARENTIDColumnName();
	$mpcityColName = 	static::getMPCITYColumnName();

	Application::getConnection()->query("
		update ".static::getTableName()." set ".$mpcityColName." = ".$mpcityColName." - ".intval($decrement)." where ".$idColName." = '".$to."' and ".$parentIdColName." = '".$from."'
	");
}