Skip to content

Return type for chained getRepository is not provided #1224

Open
@cedricziel

Description

@cedricziel

In a ContainerAwareCommand:

/** @var MyEntityRepository $myEntityRepository */
$myEntityRepository = $this->getContainer()->get('doctrine')->getRepository(MyEntity::class);

I would expect getRepository to have an amended return type as "MyEntityRepository" (if existent).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions