1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс ManyToMany
Граф наследования:ManyToMany:
Relation Field ITypeHintable

Открытые члены

 __construct ($name, $referenceEntity)
 getTypeMask ()
 configureMediatorEntity ($entity)
 configureMediatorTableName ($name)
 configureTableName ($name)
 configureLocalPrimary ($fieldName, $mediatorFieldName)
 configureLocalReference ($name)
 configureRemotePrimary ($fieldName, $mediatorFieldName)
 configureRemoteReference ($name)
 getRemoteEntity ()
 getLocalReferenceName ()
 getLocalReference ()
 getRemoteReferenceName ()
 getRemoteReference ()
Открытые члены унаследованные от Relation
 configureCascadeSavePolicy ($cascadeSavePolicy)
 configureCascadeDeletePolicy ($cascadeDeletePolicy)
 getRefEntityName ()
 configureJoinType ($type)
 getJoinType ()
 getCascadeSavePolicy ()
 getCascadeDeletePolicy ()
 getGetterTypeHint ()
 getSetterTypeHint ()
Открытые члены унаследованные от Field
 setEntity (Entity $entity)
 resetEntity ()
 validateValue ($value, $primary, $row, Result $result)
 modifyValueBeforeSave ($value, $data)
 getValidators ()
 addValidator ($validator)
 getFetchDataModifiers ()
 addFetchDataModifier ($modifier)
 getSaveDataModifiers ()
 addSaveDataModifier ($modifier)
 isSerialized ()
 setSerialized ()
 configureSerialized ()
 getName ()
 setName ($name)
 configureTitle ($title)
 getTitle ()
 setParameter ($name, $value)
 getParameter ($name)
 hasParameter ($name)
 setParentField (Field $parentField)
 getParentField ()
 getDataType ()
 getEntity ()
 getLangCode ()
 setConnection ($connection)
 getConnection ()
 serialize ($value)
 unserialize ($value)
 postInitialize ()

Защищенные данные

 $mediatorEntityName
 $mediatorEntity
 $mediatorTableName
 $localPrimaryNames
 $localReferenceName
 $remotePrimaryNames
 $remoteReferenceName
 $joinType = Join::TYPE_LEFT
 $cascadeSavePolicy = CascadePolicy::NO_ACTION
 $cascadeDeletePolicy = CascadePolicy::NO_ACTION
Защищенные данные унаследованные от Relation
 $refEntityName
 $refEntity
 $joinType = null
 $cascadeSavePolicy
 $cascadeDeletePolicy
Защищенные данные унаследованные от Field
 $name
 $dataType
 $initialParameters
 $title
 $validation = null
 $validators = null
 $additionalValidators = array()
 $fetchDataModification = null
 $fetchDataModifiers
 $additionalFetchDataModifiers = array()
 $saveDataModification = null
 $saveDataModifiers
 $additionalSaveDataModifiers = array()
 $isSerialized = false
 $parentField
 $entity
 $connection = null

Дополнительные унаследованные члены

Открытые статические члены унаследованные от Field
static getOldDataTypeByClass ($class)
static getOldDataTypeByField (Field $field)
static getClassByOldDataType ($dateType)
Защищенные члены унаследованные от Field
 appendValidator ($validator)
 appendFetchDataModifier ($modifier)
 appendSaveDataModifier ($modifier)
Статические защищенные данные унаследованные от Field
static $oldDataTypes

Подробное описание

См. определение в файле manytomany.php строка 24

Конструктор(ы)

◆ __construct()

__construct ( $name,
$referenceEntity )
Аргументы
string$name
string | Entity$referenceEntity
Исключения
SystemException

Переопределяет метод предка Field.

См. определение в файле manytomany.php строка 61

Методы

◆ configureLocalPrimary()

configureLocalPrimary ( $fieldName,
$mediatorFieldName )

In case of auto-generated mediator, sets the custom ID field name that stores owner entity ID.

Аргументы
$fieldName
$mediatorFieldName
Возвращает
$this

См. определение в файле manytomany.php строка 139

◆ configureLocalReference()

configureLocalReference ( $name)

In case of auto-generated mediator, sets the custom reference field name that points to owner entity.

Аргументы
$name
Возвращает
$this

См. определение в файле manytomany.php строка 153

◆ configureMediatorEntity()

configureMediatorEntity ( $entity)

Explicit mediator entity. By default will be generated automatically.

Аргументы
string | Entity$entity
Возвращает
$this

См. определение в файле manytomany.php строка 89

◆ configureMediatorTableName()

configureMediatorTableName ( $name)

In case of auto-generated mediator, sets the custom table name.

Аргументы
$name
Возвращает
$this

См. определение в файле manytomany.php строка 112

◆ configureRemotePrimary()

configureRemotePrimary ( $fieldName,
$mediatorFieldName )

In case of auto-generated mediator, sets the custom ID field name that stores target entity ID.

Аргументы
$fieldName
$mediatorFieldName
Возвращает
$this

См. определение в файле manytomany.php строка 168

◆ configureRemoteReference()

configureRemoteReference ( $name)

In case of auto-generated mediator, sets the custom reference field name that points to target entity.

Аргументы
$name
Возвращает
$this

См. определение в файле manytomany.php строка 182

◆ configureTableName()

configureTableName ( $name)

Short alias for configureMediatorTableName()

Аргументы
$name
Возвращает
$this

См. определение в файле manytomany.php строка 126

◆ getLocalReference()

getLocalReference ( )

Returns reference from mediator to owner entity

Возвращает
\Bitrix\Main\ORM\Fields\Relations\Reference|\Bitrix\Main\ORM\Fields\Field
Исключения
ArgumentException
SystemException

См. определение в файле manytomany.php строка 317

◆ getLocalReferenceName()

getLocalReferenceName ( )
Возвращает
string

См. определение в файле manytomany.php строка 300

◆ getRemoteEntity()

getRemoteEntity ( )
Возвращает
Entity
Исключения
ArgumentException
SystemException

См. определение в файле manytomany.php строка 194

◆ getRemoteReference()

getRemoteReference ( )

Returns reference from mediator to target entity

Возвращает
\Bitrix\Main\ORM\Fields\Relations\Reference|\Bitrix\Main\ORM\Fields\Field
Исключения
ArgumentException
SystemException

См. определение в файле manytomany.php строка 344

◆ getRemoteReferenceName()

getRemoteReferenceName ( )
Возвращает
string
Исключения
ArgumentException
SystemException

См. определение в файле manytomany.php строка 327

◆ getTypeMask()

getTypeMask ( )

Переопределяет метод предка Field.

См. определение в файле manytomany.php строка 77

Поля

◆ $cascadeDeletePolicy

$cascadeDeletePolicy = CascadePolicy::NO_ACTION
protected

См. определение в файле manytomany.php строка 53

◆ $cascadeSavePolicy

$cascadeSavePolicy = CascadePolicy::NO_ACTION
protected

См. определение в файле manytomany.php строка 51

◆ $joinType

$joinType = Join::TYPE_LEFT
protected

См. определение в файле manytomany.php строка 48

◆ $localPrimaryNames

$localPrimaryNames
protected

См. определение в файле manytomany.php строка 36

◆ $localReferenceName

$localReferenceName
protected

См. определение в файле manytomany.php строка 39

◆ $mediatorEntity

$mediatorEntity
protected

См. определение в файле manytomany.php строка 30

◆ $mediatorEntityName

$mediatorEntityName
protected

См. определение в файле manytomany.php строка 27

◆ $mediatorTableName

$mediatorTableName
protected

См. определение в файле manytomany.php строка 33

◆ $remotePrimaryNames

$remotePrimaryNames
protected

См. определение в файле manytomany.php строка 42

◆ $remoteReferenceName

$remoteReferenceName
protected

См. определение в файле manytomany.php строка 45


Объявления и описания членов класса находятся в файле: