[coldbox-5.6.2] [cborm-2.50] - datasource argument set in concrete service is not being honoured by BaseORMService.cfc

I am a beginner to cborm and have been following the docs in order to get up and running.

I have now create a concrete service which extends the cborm.models.VirtualEntityService which in turn extends the BaseORMService.cfc.

I am then using the list method to get back a query with the records from the database table which is working.

Unfortunately it is using the default database set in my application,cfc as this.datasource.

I have changed the datasource property in my ConcreteService super.init

`

public ProductRuleService function init(){
super.init( entityName=“ProductRuleEntity” , datasource=“live_globalvariables” );

`

But this has not had any affect. I then dumped out the variable in both the VirtualEntityService and the BaseORMService.cfc and indeed my datasource argument had been passed up the chain into each object correctly.

Looking into the BaseORMService.cfc list() method I can see it calls the CF method entityLoad which does not seem to take in a datasource parameter.

Can anyone help me get my custom datasource working for my concrete service?

Thanks

In the API documentation for cborm 2.5 it states that the datasource property is used for all transactions so I would have thought that it would work with the list() method?

"datasource
The default datsource to use for all transactions, else we look at arguments or entity itself."

I suppose what I really want to know is whether or not it is possible to have a different datasource for a specific entity?

So let’s say my application datasource is set to “myMainApplicationDatabase” and I want to a specific entity to use “mySubApplicationDatabase”

Is this possible?

I have not worked very much with different datasources for entities. I would have to do some research