Метод add

public

Сигнатура метода

public function add(array $fields): Result

Возвращает: Result

Описание

Inserts a new row and returns its identifier. Insert, not merge: merging by the unique key belongs to {@see self::merge()}, the write of the legacy path, where an address of an already occupied type is silently overwritten.

Параметры

1
Имя Тип По умолчанию Флаги
$fields array —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/Address/AddressRepository.php
Расположение метода в файле
Строки 233–266

Исходный код

PHP