Reputation: 37
I recently switch to vsCode, and I'm facing to a little problem.
PHP Intelephense works well for php and symfony completion, but when I wrote DQL / Query Builder I didn't have autocomplete of the field of entity :
$qb
->select('u.id, u.field1, u.field2, rel.field1')
->leftJoin('u.relation', 'rel')
->where('rel.fieldOnRelation = :condition')
->setParameter('condition', 'xxx')
;
u.*
didn't complete, and on leftJoin, I didn't have the field of the u
entity to choose, I need to type it manually.
I was on PhpStorm previously and the autocomplete works on dql.
Upvotes: 1
Views: 227
Reputation: 306
This VSX extension claims to do just that: https://open-vsx.org/extension/tmrdh/symfony-helper
I tried it and it's not nearly on PhpStorm's level but AFAIK it's the best option available.
Be aware that the GitHub repo returns a 404 and the author is not verified which is not very reassuring.
Upvotes: 0