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] findBy autocomplete does not work with explict vdoc #64

Closed
Koc opened this issue Apr 13, 2017 · 1 comment
Closed

[Doctrine] findBy autocomplete does not work with explict vdoc #64

Koc opened this issue Apr 13, 2017 · 1 comment

Comments

@Koc
Copy link
Contributor

Koc commented Apr 13, 2017

PhpStorm 2017.1.2
Build #PS-171.4249.3, built on April 12, 2017
JRE: 1.8.0_112-release-736-b16 x86
JVM: OpenJDK Server VM by JetBrains s.r.o
Windows 8.1 6.3
class CategoryRepository extends AbstractCategoryRepository
{
}
class AbstractCategoryRepository extends EntityRepository
{
}

/**
 * @ORM\Entity(repositoryClass="Metal\CategoriesBundle\Repository\CategoryRepository")
 * @UniqueEntity("slug")
 * @ORM\Table(name="Message73")
 * @ORM\HasLifecycleCallbacks
 * @Gedmo\Tree(type="closure")
 * @Gedmo\TreeClosure(class="Metal\CategoriesBundle\Entity\CategoryClosure")
 */
class Category extends CategoryAbstract
{
}

/**
 * @ORM\MappedSuperclass
 */
abstract class CategoryAbstract
{
}
    public function listAction()
    {
        $em = $this->getDoctrine()->getManager();
        $categoryRepository = $em->getRepository('MetalCategoriesBundle:Category');
        /* @var  $categoryRepository CategoryRepository */
        $categories = $categoryRepository->findBy(array('NO AUTOCOMPLETE HERE'));
    }

But if I remove vdoc it works ok

    public function listAction()
    {
        $em = $this->getDoctrine()->getManager();
        $categoryRepository = $em->getRepository('MetalCategoriesBundle:Category');
   
        $categories = $categoryRepository->findBy(array('AUTOCOMPLETE WORKS OK'));
    }
@Koc Koc changed the title [Doctrine] findBy autocomplete does not work on explict vdoc [Doctrine] findBy autocomplete does not work with explict vdoc Apr 15, 2017
@Koc
Copy link
Contributor Author

Koc commented May 4, 2017

Wrong repository, see Haehnchen/idea-php-symfony2-plugin#925

@Koc Koc closed this as completed May 4, 2017
cedricziel pushed a commit to cedricziel/idea-php-toolbox that referenced this issue Jun 14, 2018
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

1 participant