protected function safeDbReconnection(){
        if(empty(Yii::$app->db->pdo->getAttribute(constant("PDO::ATTR_PERSISTENT")))){
            Yii::$app->db->close();
            Yii::$app->db->open();
        }
    }
protected function safeDbReconnection(){
        if(empty(Yii::$app->db->pdo->getAttribute(constant("PDO::ATTR_PERSISTENT")))){
            Yii::$app->db->close();
            Yii::$app->db->open();
        }
    }
protected function safeDbReconnection ( ) { if ( empty ( Yii :: $ app -> db -> pdo -> getAttribute ( constant ( "PDO::ATTR_PERSISTENT" ) ) ) ) { Yii :: $ app -> db -> close ( ) ; Yii :: $ app -> db -> open ( ) ; } }
Reconnection to base if isn't used by persistent connection
Reconnection to base if isn t used by persistent connection