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

Bundle Doctrine meta files for expectedArguments/ReturnValues completion #1290

Merged
merged 2 commits into from
Mar 21, 2019

Conversation

King2500
Copy link
Contributor

Similar to Symfony meta files I wrote them for Doctrine ORM and DBAL (and related stuff).

Since there is no dedicated Doctrine plugin atm and this plugin already has Doctrine completion stuff it made most sense for me to bundle meta files here as well.

This mainly adds completion for types, modes and hint constants in Query, Querybuilders, etc methods.

There is also a neat trick involved, when you write $qb->where( it suggests $qb->expr() thanks to PhpStorm's matching between expectedReturnValues and expectedArguments of methods. This makes writing QueryBuilder calls with complex expressions/conditions a lot easier :)

Some things like constant completion in array parameters are not yet possible because Jetbrains has to implement that first. (For example Types mapping for parameters in fetchAssoc etc)

@Haehnchen
Copy link
Owner

👍

@Haehnchen Haehnchen merged commit 75d741d into Haehnchen:master Mar 21, 2019
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

Successfully merging this pull request may close these issues.

2 participants