protected function saveTblNameInSession($name) {
        if ($session = Yii::$app->getComponents()) {
            if (isset($session['session'])) {
                if ($mName = Yii::$app->session->get($this->tableName)) {
                    return $mName;
                }

                Yii::$app->session->set($this->tableName, $name);

                return $name;
            }
        }

        return $name;
    }
protected function saveTblNameInSession($name) {
        if ($session = Yii::$app->getComponents()) {
            if (isset($session['session'])) {
                if ($mName = Yii::$app->session->get($this->tableName)) {
                    return $mName;
                }

                Yii::$app->session->set($this->tableName, $name);

                return $name;
            }
        }

        return $name;
    }
protected function saveTblNameInSession ( $ name ) { if ( $ session = Yii :: $ app -> getComponents ( ) ) { if ( isset ( $ session [ 'session' ] ) ) { if ( $ mName = Yii :: $ app -> session -> get ( $ this -> tableName ) ) { return $ mName ; } Yii :: $ app -> session -> set ( $ this -> tableName , $ name ) ; return $ name ; } } return $ name ; }
Save migration name in session
@param string $name Migration name
@return mixed
Save migration name in session