Programming Language PHP

Namespace Oro\Component\DoctrineUtils\ORM

Class QueryBuilderUtil

Method/Function getSingleRootAlias

Total Examples 1

1 code examples of PHP Oro\Component\DoctrineUtils\ORM\QueryBuilderUtil::getSingleRootAlias extracted from open source projects

Was this example useful?
0
                                                    /**
     * Gets the root alias of the given query.
     *
     *
     *
     * @throws QueryException if the given query builder does not have a root alias or has more than one root aliases
     */
    public function getRootAlias(QueryBuilder $qb): string
    {
        return QueryBuilderUtil::getSingleRootAlias($qb);
    }