EntityResult
in package
implements
MappingAttribute
FinalYes
References an entity in the SELECT clause of a SQL query.
If this annotation is used, the SQL statement should select all of the columns that are mapped to the entity object. This should include foreign key columns to related entities. The results obtained when insufficient data is available are undefined.
Tags
Table of Contents
Interfaces
- MappingAttribute
- A marker interface for mapping attributes.
Properties
- $discriminatorColumn : string
- Specifies the column name of the column in the SELECT list that is used to determine the type of the entity instance.
- $entityClass : string
- The class of the result.
- $fields : array<string|int, FieldResult>
- Maps the columns specified in the SELECT list of the query to the properties or fields of the entity class.
Properties
$discriminatorColumn
Specifies the column name of the column in the SELECT list that is used to determine the type of the entity instance.
public
string
$discriminatorColumn
$entityClass
The class of the result.
public
string
$entityClass
$fields
Maps the columns specified in the SELECT list of the query to the properties or fields of the entity class.
public
array<string|int, FieldResult>
$fields
= []