Doctrine\ORM\Query\ResultSetMapping::addEntityResult
Adds an entity result to this ResultSetMapping.
Signature
public function addEntityResult(string
$class,
[string
$alias = null,
[string
$resultAlias = null]] )
Parameters
$class
—
string
- The class name of the entity.
$alias
—
string
- The alias for the class. The alias must be unique among all entity
results or joined entity results within this ResultSetMapping.
$resultAlias
—
string
- The result alias with which the entity result should be
placed in the result structure.
Returns
- ResultSetMapping
- This ResultSetMapping instance.
Line |
Task |
132+ |
Rename: addRootEntity |