Documentation

CachedPersisterContext
in package

A swappable persister context to use as a container for the current generated query/resultSetMapping/type binding information.

This class is a utility class to be used only by the persister API

This object is highly mutable due to performance reasons. Same reasoning behind its properties being public.

Table of Contents

Properties

$class  : ClassMetadata
Metadata object that describes the mapping of the mapped entity class.
$handlesLimits  : bool
Whether this persistent context is considering limit operations applied to the selection queries
$rsm  : ResultSetMapping
ResultSetMapping that is used for all queries. Is generated lazily once per request.
$selectColumnListSql  : string|null
The SELECT column list SQL fragment used for querying entities by this persister.
$selectJoinSql  : string
The JOIN SQL fragment used to eagerly load all many-to-one and one-to-one associations configured as FETCH_EAGER, as well as all inverse one-to-one associations.
$sqlAliasCounter  : int
Counter for creating unique SQL table and column aliases.
$sqlTableAliases  : array<class-string, string>
Map from class names (FQCN) to the corresponding generated SQL table aliases.

Methods

__construct()  : mixed

Properties

$handlesLimits

Whether this persistent context is considering limit operations applied to the selection queries

public bool $handlesLimits

$selectColumnListSql

The SELECT column list SQL fragment used for querying entities by this persister.

public string|null $selectColumnListSql

This SQL fragment is only generated once per request, if at all.

$selectJoinSql

The JOIN SQL fragment used to eagerly load all many-to-one and one-to-one associations configured as FETCH_EAGER, as well as all inverse one-to-one associations.

public string $selectJoinSql

$sqlAliasCounter

Counter for creating unique SQL table and column aliases.

public int $sqlAliasCounter = 0

$sqlTableAliases

Map from class names (FQCN) to the corresponding generated SQL table aliases.

public array<class-string, string> $sqlTableAliases = []

Methods


        
On this page

Search results