Doctrine\ORM\Query\ResultSetMapping::addScalarResult
Adds a scalar result mapping.
Signature
public function addScalarResult(string
$columnName,
[string
$alias = 'string',
[string
$type = 'string']] )
Parameters
$columnName
—
string
- The name of the column in the SQL result set.
$alias
—
string
- The result alias with which the scalar result should be placed in the result structure.
$type
—
string
- The column type
Returns
- ResultSetMapping
- This ResultSetMapping instance.
Line |
Task |
311+ |
Rename: addScalar |