Fix for #2970 Yii doesn't track what tables are connected

Fix for #2970 Yii doesn't track what tables are connected