PHP Class ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryJoinParser

Author: Teoh Han Hui ([email protected])
Author: Vincent Chalamon ([email protected])
Show file Open project: api-platform/core Class Usage Examples

Public Methods

Method Description
getClassMetadataFromJoinAlias ( string $alias, Doctrine\ORM\QueryBuilder $queryBuilder, Doctrine\Common\Persistence\ManagerRegistry $managerRegistry ) : Doctrine\ORM\Mapping\ClassMetadata Gets the class metadata from a given join alias.
getJoinAlias ( Doctrine\ORM\Query\Expr\Join $join ) : string Gets the alias from a Join expression.
getJoinRelationship ( Doctrine\ORM\Query\Expr\Join $join ) : string Gets the relationship from a Join expression.
getOrderByParts ( Doctrine\ORM\Query\Expr\OrderBy $orderBy ) : array Gets the parts from an OrderBy expression.

Private Methods

Method Description
__construct ( )

Method Details

getClassMetadataFromJoinAlias() public static method

Gets the class metadata from a given join alias.
public static getClassMetadataFromJoinAlias ( string $alias, Doctrine\ORM\QueryBuilder $queryBuilder, Doctrine\Common\Persistence\ManagerRegistry $managerRegistry ) : Doctrine\ORM\Mapping\ClassMetadata
$alias string
$queryBuilder Doctrine\ORM\QueryBuilder
$managerRegistry Doctrine\Common\Persistence\ManagerRegistry
return Doctrine\ORM\Mapping\ClassMetadata

getJoinAlias() public static method

Gets the alias from a Join expression.
public static getJoinAlias ( Doctrine\ORM\Query\Expr\Join $join ) : string
$join Doctrine\ORM\Query\Expr\Join
return string

getJoinRelationship() public static method

Gets the relationship from a Join expression.
public static getJoinRelationship ( Doctrine\ORM\Query\Expr\Join $join ) : string
$join Doctrine\ORM\Query\Expr\Join
return string

getOrderByParts() public static method

Gets the parts from an OrderBy expression.
public static getOrderByParts ( Doctrine\ORM\Query\Expr\OrderBy $orderBy ) : array
$orderBy Doctrine\ORM\Query\Expr\OrderBy
return array