method public

Reference::getConnection()

Класс: \Bitrix\Main\ORM\Fields\Relations\Reference

Сигнатура

public getConnection() : Connection

Возвращаемое значение

Connection

Как применяется в Reference

Reference::getConnection() — метод класса \Bitrix\Main\ORM\Fields\Relations\Reference модуля «Главный модуль». Reference: Поле Reference описывает отношение 1-к-1 или 1-ко-многим между двумя сущностями.

Метод объекта: сначала нужен экземпляр Reference.

use Bitrix\Main\ORM\Fields\Relations\Reference;

/** @var Reference $object */
$result = $object->getConnection();
// $result: Connection

Другие методы Reference

getConnection() есть и у других классов модуля «Главный модуль»: Application, ArrayField, BooleanField, ConnectionPool, CryptoField, DateField, DatetimeField, DecimalField.

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

Что будем искать? Например,Продвижение