Issue with uvm_config_db set and get

In reply to chr_sue:

The error comes from this part :

if (!uvm_config_db #(spi_env_config)::get( this,"", "my_spi_env_config", my_spi_env_config))
	 begin 
	    `uvm_fatal(get_type_name(),$psprintf("SPI not configured")) 
	 end

in top_spi_tb_env.

When I follow the config_db trace, I see that the path is correct. For the set it is :
uvm_test_top.*.my_spi_env_config
and for the get it is :
uvm_test_top.top_tb.spi_tb.my_spi_env_config

The code is splited in three files (one for the test, one for top and one for top_spi_tb_env). I tried to use the same lines with an integer instead of the class spi_env_config and it’s working.