Doctrine\ORM\Query\ResultSetMappingBuilder::addJoinedEntityFromClassMetadata
Adds a joined entity and all of its fields to the result set.
Signature
public function addJoinedEntityFromClassMetadata(string
$class,
string
$alias,
string
$parentAlias,
$relation,
array
$renamedColumns )
Parameters
$class
—
string
- The class name of the joined entity.
$alias
—
string
- The unique alias to use for the joined entity.
$parentAlias
—
string
- The alias of the entity result that is the parent of this joined result.
$relation
—
object
- The association field that connects the parent entity result with the joined entity result.
$renamedColumns
—
array
- Columns that have been renamed (tableColumnName => queryColumnName)