Wappler Version : 5.4.1
Operating System : 12.6.1
Server Model: PHP
Database Type: MySQL
Hosting Type: Docker
What do you think should happen?
Adding a subtable’s columns to a query should not cause an error.
What actually happens?
Adding the subtable columns causes the following message:
“Undefined property: stdClass::$sub”
How to reproduce
In my case, I have a “users” table in which I have created a “roles” table. When adding the users table to a query with INNER or LEFT JOIN and adding the roles table to the columns, I get the above error. I noticed that other user table columns get added with the proper alias name like “participants_table.id” etc. but the roles table gets added as “users.roles” (see screenshot) so I removed the alias so they would all be added as users.column_name and users.role, but that didn’t help. Perhaps this is not supported, but I could have sworn that I’ve done it this way before.