Doctrine\ORM\Query\ResultSetMapping::addIndexBy
Sets a field to use for indexing an entity result or joined entity result.
Signature
public function addIndexBy(string
$alias,
string
$fieldName )
Parameters
$alias
—
string
- The alias of an entity result or joined entity result.
$fieldName
—
string
- The name of the field to use for indexing.
Returns
- ResultSetMapping
- This ResultSetMapping instance.
Line |
Task |
183 |
check if this exception can be put back, for now it's gone because of assumptions made by some ORM internals |