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

[Doctrine] Plugin does not resolve Doctrine repository by explicit classname (5.5 syntax) #541

Closed
scaytrase opened this issue Jul 9, 2015 · 7 comments
Labels

Comments

@scaytrase
Copy link

Given a code snippet

   use Some\Name\SpaceBundle\User;

   $this->getDoctrine()->getManager()->getRepository(User::class)->someCustomMethod();

marks someCustomMethod as not existing.

Using SpaceBundle:User syntax works well.

@Haehnchen Haehnchen added the todo label Aug 2, 2015
@Haehnchen
Copy link
Owner

which phpstorm version?

@scaytrase
Copy link
Author

That was on most 9x EAPs and 9.0. Not sure about 8.x as I mostly use 9.x last time

@scaytrase
Copy link
Author

Also it is not recognizing EntityName::class when using it with Form data_class option. Replacing it with FQCN make the entity mapping helper working in buildForm $builder->add method. Switching back to EntityName::class disables autocompletion

@Haehnchen Haehnchen changed the title Plugin does not resolve Doctrine repository by explicit classname (5.5 syntax) [Doctrine] Plugin does not resolve Doctrine repository by explicit classname (5.5 syntax) Aug 23, 2015
@Jean85
Copy link

Jean85 commented Aug 23, 2015

The form issue was already in #523
It has just been resolved! Maybe the fix is somehow reusable for this problem too?

@Haehnchen
Copy link
Owner

also started here, but its still working. need to validate it against several api's, need testing "assert" first. btw you missed find(1) in your example.

$this->getDoctrine()->getRepository(Bike::class)->find(1)->getBikes()

@Haehnchen
Copy link
Owner

@Haehnchen Haehnchen added the api label Sep 3, 2015
Haehnchen added a commit that referenced this issue Sep 3, 2015
Haehnchen added a commit that referenced this issue Sep 3, 2015
@Haehnchen
Copy link
Owner

a wtf issue, but fixed ;)

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

3 participants