protected function closeDoctrineConnections()
    {
        foreach (app('db')->getConnections() as $connection) {
            call_user_func(\Closure::bind(function () {
                $this->doctrineConnection = null;
            }, $connection, $connection));
        }
    }