yii\mongodb\Migration::init PHP Метод

init() публичный Метод

This method will set [[db]] to be the 'db' application component, if it is null.
public init ( )
    public function init()
    {
        parent::init();
        $this->db = Instance::ensure($this->db, Connection::className());
    }