Closed
Description
\PHPStan\dumpType($this);
$this->getEntityManager()->getRepository(WaitingList::class)->createQueryBuilder('w')->update();
\PHPStan\dumpType($this);
give me
263 Dumped type: $this(App\Core\Workflow\WorkflowProductStoreEventSubscriber)
265 Dumped type: Doctrine\ORM\QueryBuilder
In the same way
$repo = $this->getEntityManager()->getRepository(WaitingList::class);
$repo->createQueryBuilder('w')->update();
\PHPStan\dumpType($repo);
is giving Dumped type: Doctrine\ORM\QueryBuilder
instead of a repository.
If I manually remove the QueryBuilderTypeSpecifyingExtension
, it fix my issue.
Metadata
Metadata
Assignees
Labels
No labels