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

Wrong parameter autocompletion #274

Closed
Koc opened this issue Apr 29, 2014 · 1 comment
Closed

Wrong parameter autocompletion #274

Koc opened this issue Apr 29, 2014 · 1 comment
Labels

Comments

@Koc
Copy link
Contributor

Koc commented Apr 29, 2014

Hello Daniel!

I've updated plugin to the latest version and noticed some new feature: parameters autocompletion. Awesome, but it works buggy in some cases:

        $subscribers = $subscribersRepository->createQueryBuilder('s')
            ->andWhere('s.subscriptionStatus = :status')
            ->andWhere('s.lastSent < :last_sent') // autosuggest ok
            ->setParameter('last_sent', $lastSent, 'date')
            ->getQuery()
            ->getResult();

        $subscribersRepository->createQueryBuilder('s')
            ->update()
            ->set('s.lastSent', ':now')
            ->setParameter('now', $lastSent) // autosuggest propose me use `last_sent` parameter
@Haehnchen Haehnchen added the todo label May 4, 2014
@Haehnchen
Copy link
Owner

really tricky, but iam rewriting the method collector to also support nested methods. so stay tuned :)

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