I'm getting unable to resolve table
errors appear in php files containing SQL querying valid tables.
If I Ctrl + Enter over the query, then I get expected results in the DB console, and if I expand the database in the DB explorer tab then I can see the tables.
It's not affecting code execution, but it's annoying because it catches my eye when writing code, and it masks real SQL errors.
I've tried refreshing the database connection, and I've verified that the php tab is connecting to the correct database.
Try re-creating DB connection from scratch (delete existing one and create it again).
Thinking of possible reasons ... I can think of this scenario:
No other ideas.
For me it helped going to the datasource properties and unchecking
Current Schema
leaving only the correct database checked. Otherwise it would try to resolve everything from theinformation_schema
database.@SteenSchütt This suggest me that you may not have selected the DB in Connection settings... At very least that's my thoughts on possible reason for such behaviour.
I had selected both
Current Schema
and the database I wanted. I supposeinformation_schema
was the current, but I'm just pointing it out as an additional debugging step.