type fixes

This commit is contained in:
Yuri Kuznetsov
2021-11-08 15:22:49 +02:00
parent ac57f6a39a
commit ab9f78d33f
2 changed files with 13 additions and 1 deletions
@@ -732,6 +732,7 @@ class RDBRepository implements Repository
throw new RuntimeException("Can't clone a query of a different entity type.");
}
/** @var RDBSelectBuilder<TEntity> */
$builder = new RDBSelectBuilder($this->entityManager, $this->entityType, $query);
return $builder;
@@ -892,6 +893,8 @@ class RDBRepository implements Repository
* * `groupBy([$expr1, $expr2, ...])`
*
* @param Expression|Expression[]|string|string[] $groupBy
*
* @phpstan-return RDBSelectBuilder<TEntity>
*/
public function group($groupBy): RDBSelectBuilder
{