Метод save
Сигнатура метода
public function save(ManagedAgentInstance $instance): ManagedAgentInstance
Возвращает:
ManagedAgentInstance
Описание
Inserts a new instance or updates a stored one and returns the instance with the persisted id. A unique key violation is reported as an exception and never retried as a blind insert: the caller rereads the row by identity hash and compares the stored components itself.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$instance
|
ManagedAgentInstance
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/Repository/AiAgent/ManagedAgentInstanceRepositoryInterface.php
Расположение метода в файле
Строки
63–63