lib/Doctrine/ORM/Query/ResultSetMapping.php
public function addJoinedEntityResult($class, $alias, $parentAlias, $relation)
    {
        $this->aliasMap[$alias]       = $class;
        $this->parentAliasMap[$alias] = $parentAlias;
        $this->relationMap[$alias]    = $relation;

        return $this;
    }
public function addJoinedEntityResult($class, $alias, $parentAlias, $relation)
    {
        $this->aliasMap[$alias]       = $class;
        $this->parentAliasMap[$alias] = $parentAlias;
        $this->relationMap[$alias]    = $relation;

        return $this;
    }
public function addJoinedEntityResult ( $ class , $ alias , $ parentAlias , $ relation ) { $ this -> aliasMap [ $ alias ] = $ class ; $ this -> parentAliasMap [ $ alias ] = $ parentAlias ; $ this -> relationMap [ $ alias ] = $ relation ; return $ this ; }
Adds a joined entity result.

@param string $class       The class name of the joined entity.
@param string $alias       The unique alias to use for the joined entity.
@param string $parentAlias The alias of the entity result that is the parent of this joined result.
@param string $relation    The association field that connects the parent entity result
with the joined entity result.

@return ResultSetMapping This ResultSetMapping instance.

@todo Rename: addJoinedEntity
Adds a joined entity result .