# ManyToMany

URL: https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\Main\ORM\Fields\Relations\ManyToMany`
Модуль: Main.

## Описание

main

Исходный файл: `source/main/lib/orm/fields/relations/manytomany.php:24`

## Методы (58)

- [`__construct()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/__construct/)
- [`addFetchDataModifier()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/addfetchdatamodifier/)
- [`addSaveDataModifier()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/addsavedatamodifier/)
- [`addValidator()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/addvalidator/)
- [`configureCascadeDeletePolicy()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configurecascadedeletepolicy/)
- [`configureCascadeSavePolicy()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configurecascadesavepolicy/)
- [`configureJoinType()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configurejointype/)
- [`configureLocalPrimary()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configurelocalprimary/) — В случае автоматически сгенерированного медиатора задаёт пользовательское имя поля ID, хранящего ID сущности-владельца.
- [`configureLocalReference()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configurelocalreference/) — В случае автоматически сгенерированного медиатора задаёт пользовательское имя ссылочного поля, указывающего на сущность-владельца.
- [`configureMediatorEntity()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configuremediatorentity/) — Явная сущность-медиатор. По умолчанию генерируется автоматически.
- [`configureMediatorTableName()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configuremediatortablename/) — В случае автоматически сгенерированного медиатора задаёт пользовательское имя таблицы.
- [`configureRemotePrimary()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configureremoteprimary/) — В случае автоматически сгенерированного медиатора задаёт пользовательское имя поля ID, хранящего ID целевой сущности.
- [`configureRemoteReference()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configureremotereference/) — В случае автоматически сгенерированного медиатора задаёт пользовательское имя ссылочного поля, указывающего на целевую сущность.
- [`configureSerialized()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configureserialized/) (устаревший)
- [`configureTableName()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configuretablename/) — Короткий псевдоним для configureMediatorTableName()
- [`configureTitle()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/configuretitle/) — Языковая фраза
- [`getCascadeDeletePolicy()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getcascadedeletepolicy/)
- [`getCascadeSavePolicy()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getcascadesavepolicy/)
- [`static getClassByOldDataType()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getclassbyolddatatype/) (устаревший)
- [`getConnection()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getconnection/)
- [`getDataType()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getdatatype/) (устаревший)
- [`getEntity()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getentity/)
- [`getFetchDataModifiers()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getfetchdatamodifiers/)
- [`getGetterTypeHint()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getgettertypehint/)
- [`getJoinType()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getjointype/)
- [`getLangCode()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getlangcode/)
- [`getLocalReference()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getlocalreference/) — Возвращает ссылку от медиатора к сущности-владельцу
- [`getLocalReferenceName()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getlocalreferencename/)
- [`getMediatorEntity()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getmediatorentity/)
- [`getName()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getname/)
- [`static getOldDataTypeByClass()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getolddatatypebyclass/) (устаревший)
- [`static getOldDataTypeByField()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getolddatatypebyfield/) (устаревший)
- [`getParameter()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getparameter/)
- [`getParentField()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getparentfield/)
- [`getRefEntity()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getrefentity/)
- [`getRefEntityName()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getrefentityname/)
- [`getRemoteEntity()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getremoteentity/)
- [`getRemoteReference()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getremotereference/) — Возвращает ссылку от медиатора к целевой сущности
- [`getRemoteReferenceName()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getremotereferencename/)
- [`getSaveDataModifiers()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getsavedatamodifiers/)
- [`getSetterTypeHint()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getsettertypehint/)
- [`getTitle()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/gettitle/)
- [`getTypeMask()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/gettypemask/)
- [`getValidators()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/getvalidators/)
- [`hasParameter()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/hasparameter/)
- [`isSerialized()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/isserialized/)
- [`modifyValueBeforeSave()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/modifyvaluebeforesave/)
- [`postInitialize()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/postinitialize/) — Вызывается после инициализации сущностью Entity
- [`resetEntity()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/resetentity/)
- [`serialize()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/serialize/)
- [`setConnection()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/setconnection/)
- [`setEntity()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/setentity/)
- [`setName()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/setname/)
- [`setParameter()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/setparameter/)
- [`setParentField()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/setparentfield/)
- [`setSerialized()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/setserialized/)
- [`unserialize()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/unserialize/)
- [`validateValue()`](https://chugunov.pro/api-bitrix/main/orm/fields/relations/manytomany/validatevalue/)

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Main-ORM-Fields-Relations-ManyToMany.html
