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