Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return type for chained getRepository is not provided #1224

Open
cedricziel opened this issue Sep 3, 2018 · 1 comment
Open

Return type for chained getRepository is not provided #1224

cedricziel opened this issue Sep 3, 2018 · 1 comment

Comments

@cedricziel
Copy link
Contributor

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).

@theredled
Copy link

Don't know if it's gonna be accepted but my PR fixes this, among other cases : #1276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants