Doctrine\ORM\QueryBuilder::getRootAlias
Gets the FIRST root alias of the query. This is the first entity alias involved in the construction of the query.
<code> $qb = $em->createQueryBuilder() ->select('u') ->from('User', 'u'); echo $qb->getRootAlias(); // u </code>
Signature
public function getRootAlias()
Returns
- string
- $rootAlias