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

Support class (PHP 5.5) constant when getting repository #193

Closed
tiger-seo opened this issue Dec 9, 2013 · 3 comments
Closed

Support class (PHP 5.5) constant when getting repository #193

tiger-seo opened this issue Dec 9, 2013 · 3 comments
Labels

Comments

@tiger-seo
Copy link

use Some\ProjectBundle\Entity\User;
...
$userRepository = $this->entityManager->getRepository(User::class);
/**
 * $userRepository should have the same type as if it's like
 * $this->entityManager->getRepository('SomeProjectBundle:User');
 * or
 * $this->entityManager->getRepository('Some\ProjectBundle\Entity\User');
 */

but instead $userRepository is resolved as a Doctrine\Common\Persistence\ObjectRepository and not as a Some\ProjectBundle\Entity\UserRepository

@tiger-seo
Copy link
Author

@Haehnchen kindly asking you to pay attention to this

@Haehnchen
Copy link
Owner

looks like this also signature psielements. should be ready in next release....

Haehnchen added a commit that referenced this issue Dec 21, 2013
…actoring of all PhpTypeProvider to use reference resolve on signature
@tiger-seo
Copy link
Author

Thank you :)

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

No branches or pull requests

2 participants