Programming Language PHP

Namespace Oro\Component\DoctrineUtils\ORM

Class QueryBuilderUtil

Method/Function getField

Total Examples 1

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

Was this example useful?
0
                                                    public function getFieldExpr(string $entityClass, QueryBuilder $qb, string $fieldName): string
    {
        if ($this->virtualFieldProvider->isVirtualField($entityClass, $fieldName)) {
            return $this->getVirtualFieldExpression($qb, $entityClass, $fieldName);
        }

        return QueryBuilderUtil::getField($this->getRootTableAlias($qb), $fieldName);
    }