Метод add
Сигнатура метода
public function add(Relation $relation): Collection
Возвращает:
Collection
Описание
Add the relation to the collection If a similar relation already present in the collection, the new one will not be added But if the new relation is predefined, it will replace the old one
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$relation
|
Relation
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/Relation/Collection.php
Расположение метода в файле
Строки
54–75