| Methods |
public
|
__construct(EntityManagerInterface $em, self::COLUMN_RENAMING_* $defaultRenameMode = self::COLUMN_RENAMING_NONE)
|
#
|
public
|
addRootEntityFromClassMetadata(
class-string $class,
string $alias,
array<string, string> $renamedColumns = [],
self::COLUMN_RENAMING_*|null $renameMode = null,
): void
Adds a root entity and all of its fields to the result set.
Adds a root entity and all of its fields to the result set.
Parameters
| $alias |
The unique alias to use for the root entity.
|
|
#
|
public
|
addJoinedEntityFromClassMetadata(
class-string $class,
string $alias,
string $parentAlias,
string $relation,
array<string, string> $renamedColumns = [],
self::COLUMN_RENAMING_*|null $renameMode = null,
): void
Adds a joined entity and all of its fields to the result set.
Adds a joined entity and all of its fields to the result set.
Parameters
| $alias |
The unique alias to use for the joined entity.
|
| $parentAlias |
The alias of the entity result that is the parent of this joined result.
|
| $relation |
The association field that connects the parent entity result
with the joined entity result.
|
|
#
|
protected
|
addAllClassFields(string $class, string $alias, array<string, string> $columnAliasMap = []): void
Adds all fields of the given class to the result set mapping (columns and meta fields).
Adds all fields of the given class to the result set mapping (columns and meta fields).
Throws
|
#
|
private
|
isInheritanceSupported(ClassMetadata $classMetadata): bool
|
#
|
private
|
getColumnAlias(string $columnName, int $mode, array<string, string> $customRenameColumns): string
Gets column alias for a given column.
Gets column alias for a given column.
|
#
|
private
|
getColumnAliasMap(
class-string $className,
self::COLUMN_RENAMING_* $mode,
array<string, string> $customRenameColumns,
): string[]
Retrieves a class columns and join columns aliases that are used in the SELECT clause.
Retrieves a class columns and join columns aliases that are used in the SELECT clause.
This depends on the renaming mode selected by the user.
|
#
|
public
|
addNamedNativeQueryMapping(ClassMetadataInfo $class, mixed[] $queryMapping): ResultSetMappingBuilder
Adds the mappings of the results of native SQL queries to the result set.
Adds the mappings of the results of native SQL queries to the result set.
Deprecated
This method is deprecated and will be removed in Doctrine ORM 3.0.
|
#
|
public
|
addNamedNativeQueryResultClassMapping(ClassMetadataInfo $class, string $resultClassName): $this
Adds the class mapping of the results of native SQL queries to the result set.
Adds the class mapping of the results of native SQL queries to the result set.
Deprecated
This method is deprecated and will be removed in Doctrine ORM 3.0.
|
#
|
public
|
addNamedNativeQueryResultSetMapping(ClassMetadataInfo $class, string $resultSetMappingName): $this
Adds the result set mapping of the results of native SQL queries to the result set.
Adds the result set mapping of the results of native SQL queries to the result set.
Deprecated
This method is deprecated and will be removed in Doctrine ORM 3.0.
|
#
|
public
|
addNamedNativeQueryEntityResultMapping(ClassMetadataInfo $classMetadata, mixed[] $entityMapping, string $alias): $this
Adds the entity result mapping of the results of native SQL queries to the result set.
Adds the entity result mapping of the results of native SQL queries to the result set.
Deprecated
This method is deprecated and will be removed in Doctrine ORM 3.0.
Throws
|
#
|
public
|
generateSelectClause(array<string, string> $tableAliases = []): string
Generates the Select clause from this ResultSetMappingBuilder.
Generates the Select clause from this ResultSetMappingBuilder.
Works only for all the entity results. The select parts for scalar
expressions have to be written manually.
|
#
|
public
|
__toString(): string
|
#
|