src/Bridge/Doctrine/Orm/Util/QueryChecker.php
public static function hasRootEntityWithCompositeIdentifier(QueryBuilder $queryBuilder, ManagerRegistry $managerRegistry): bool
    {
        foreach ($queryBuilder->getRootEntities() as $rootEntity) {
            /** @var ClassMetadata $rootMetadata */
            $rootMetadata = $managerRegistry
                ->getManagerForClass($rootEntity)
                ->getClassMetadata($rootEntity);

            if ($rootMetadata->isIdentifierComposite) {
                return true;
            }
        }

        return false;
    }
public static function hasRootEntityWithCompositeIdentifier(QueryBuilder $queryBuilder, ManagerRegistry $managerRegistry): bool
    {
        foreach ($queryBuilder->getRootEntities() as $rootEntity) {
            /** @var ClassMetadata $rootMetadata */
            $rootMetadata = $managerRegistry
                ->getManagerForClass($rootEntity)
                ->getClassMetadata($rootEntity);

            if ($rootMetadata->isIdentifierComposite) {
                return true;
            }
        }

        return false;
    }
public static function hasRootEntityWithCompositeIdentifier ( QueryBuilder $ queryBuilder , ManagerRegistry $ managerRegistry ) : bool { foreach ( $ queryBuilder -> getRootEntities ( ) as $ rootEntity ) { /** @var ClassMetadata $rootMetadata */ $ rootMetadata = $ managerRegistry -> getManagerForClass ( $ rootEntity ) -> getClassMetadata ( $ rootEntity ) ; if ( $ rootMetadata -> isIdentifierComposite ) { return true ; } } return false ; }
Determines whether the QueryBuilder has any composite identifier.
Determines whether the QueryBuilder has any composite identifier .