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

Add support of go to repository (not only entity) by clicking ctrl+click #201

Closed
Koc opened this issue Dec 19, 2013 · 2 comments
Closed
Labels

Comments

@Koc
Copy link
Contributor

Koc commented Dec 19, 2013

$this->getDoctrine()->getManager()->getRepository('MetalCountersBundle:Counter');

I'm making ctrl+click on the repo name but go to the entity. It would be nice add menu with 2 items: entity, repo.

@Haehnchen
Copy link
Owner

double possible references are not only a problem here. currently there is not really any nice core solution for that. need to do some brainstorming on that first

@danez
Copy link

danez commented Dec 22, 2013

Would be nice to get this also working for mongoDB:
Currently with newest version this is not working:

    $mongo = $this->get('doctrine_mongodb'); // $mongo == \Doctrine\Bundle\MongoDBBundle\ManagerRegistry
    $repo = $mongo->getRepository('MyBundle:Person'); // $repo == \Doctrine\Common\Persistence\ObjectRepository
    $people = $repo->findCustom(); // method not resolved as repo is common ObjectRepository

or

    $mongo = $this->get('doctrine_mongodb'); // $mongo == \Doctrine\Bundle\MongoDBBundle\ManagerRegistry
    $manager = $mongo->getManager(); // $manager == \Doctrine\Common\Persistence\ObjectManager
    $repo = $manager->getRepository('MyBundle:Person'); // $repo == \Doctrine\Common\Persistence\ObjectRepository
    $people = $repo->findCustom(); // method not resolved as repo is common ObjectRepository      

also i cannot click on the repository/object name.

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