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 #925

Closed
Koc opened this issue May 4, 2017 · 3 comments
Closed

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

Koc opened this issue May 4, 2017 · 3 comments

Comments

@Koc
Copy link
Contributor

Koc commented May 4, 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'));
    }
@Haehnchen
Copy link
Owner

i think #792 migration will help here. some nested method issue. my next tasks

@Haehnchen
Copy link
Owner

fixed

@Koc
Copy link
Contributor Author

Koc commented May 7, 2017

thank you very much

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