Description
It would be nice to spot useless calls to getResult, see the example below
Use Case
Bad use:
$users = $repository
->createQueryBuilder('u')
->leftJoin('u.profile', 'p')
->addSelect('p')
->getQuery()
->getResult();
Good use:
$users = $repository
->createQueryBuilder('u')
->leftJoin('u.profile', 'p')
->addSelect('p')
->getQuery()
->execute();
Proposed Solution
None
Alternatives Considered
None
Description
It would be nice to spot useless calls to
getResult, see the example belowUse Case
Bad use:
Good use:
Proposed Solution
None
Alternatives Considered
None