AddInsertIgnoreTrait uses \Bitrix\Main\ORM\Data\AddStrategy\Internal\BaseInsertIgnoreTrait
Tags
Table of Contents
Methods
- addInsertIgnore() : AddResult
- Adds row to entity table, for details @see DataManager::add
- addInsertIgnoreMulti() : AddResult
- Adds several rows to entity table, for details @see DataManager::addMulti
Methods
addInsertIgnore()
Adds row to entity table, for details @see DataManager::add
public
final static addInsertIgnore(array<string|int, mixed> $data) : AddResult
This method adds a new row to the DB EXCEPT there is already a row that contains the same primary/unique field value. In this case, the new row WILL NOT be added. Think of it as using an 'INSERT IGNORE' SQL statement. Events are not supported and are never fired.
Parameters
- $data : array<string|int, mixed>
Return values
AddResultaddInsertIgnoreMulti()
Adds several rows to entity table, for details @see DataManager::addMulti
public
final static addInsertIgnoreMulti(array<string|int, mixed> $rows[, bool $ignoreEvents = false ]) : AddResult
This method adds a new row to the DB EXCEPT there is already a row that contains the same primary/unique field value. In this case, the new row WILL NOT be added. Think of it as using an 'INSERT IGNORE' SQL statement. Events are not supported and are never fired.
Parameters
- $rows : array<string|int, mixed>
- $ignoreEvents : bool = false