Doctrine\ORM\QueryBuilder::getRootEntities
Gets the root entities of the query. This is the entity aliases involved in the construction of the query.
<code> $qb = $em->createQueryBuilder() ->select('u') ->from('User', 'u'); $qb->getRootEntities(); // array('User') </code>
Signature
public function getRootEntities()
Returns
- array
- $rootEntities