You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a similar issue. Sometimes I just get it not resolving the return type of the findBy to any entity. Other times it's resolving to the wrong entity.
In this example, I have a small application with only a few entities: Entry, EntryPicture, and User.
After writing the following code in a controller function:
autocomplete for the returned objects lists methods from
Entry
andEntryPicture
.If I add one more line, for example to fetch all users, it gets even messier.
Now autocomplete lists methods from all 3 of my entities for objects from both
$entries
and$users
.Using
findBy
results in the same problem, howeverfind
andfindOneBy
works fine.I've tried this with multiple projects ranging from Symfony version 4.2 to 4.4 to make sure it's not an isolated issue.
Additional info: I have this issue in both PhpStorm 2019.3.1 and 2019.3.2 RC.
The text was updated successfully, but these errors were encountered: