protected function setupConnectionFactory(ConnectionResolverInterface $connectionResolver)
    {
        Model::setConnectionResolver($connectionResolver);

        $this->connectionFactory = new ConnectionFactory($connectionResolver);
    }