-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Question: How symfony plugin detects Doctrine mapping driver ? #2077
Comments
Any ideas ? |
Just add in, I'm working in Laravel with Laravel-doctrine package. Thanks |
sry totally missed this request. fyi: I have have still in mind, that relations inside php attributes changed "somehow or simplified" in Doctrine. Its already on my todo list to check and extract in "the wild" project cases.
are you having still any completion at all? e.g. field completion inside All mapping drivers iterated per file, so there no detection involved:
php attribute driver is located here: Line 29 in 3598fb0
|
I think a problem might be if you omit the When using a The attribute mapping driver appears to explicitly look only for the Line 93 in 3598fb0
As soon as I added |
I've found that autocompletion didn't work when mappings are set to PHP attributes and having This doesn't work: This works: |
@soltmar Lines 93 to 99 in e73cff8
But this portion is probably written this way because referencing a class by using |
…-targetEntity #2077 support resolving "targetEntity" as string for Doctrine attribute metadata
@soltmar i just added your case. |
Yeah, but this was a "leftover" in my case when converting legacy entities to attribute based mappings. @Haehnchen, thanks :) |
Hi @Haehnchen ,
Firstly thanks for the awesome plugin. It helps a lot with doctrine.
I'm using doctrine in non-symfony environment and with your plugin I had no auto-complete problems when using annotations mappings.
Since I've converted everything to Attribute mapping, auto-complete stopped working for joins. Suggestions show correctly in 'select()` though.
I assume this is because annotation is default driver in plugin.
Is there any way to tell the plugin which mapping driver I am using ?
Thanks!
The text was updated successfully, but these errors were encountered: