Thanks for putting this up. There was an old issue on postgres where by you could not switch schemas with SET SEARCH_PATH TO schema_name, public like you can do with the database, dynamically. You could only fix it on connection. This made schema based multi-tenancy a headache. Is it resolved yet in Yii3?