I am glad to announce that thanks to Mike McKellip our ORM services, virtual services, handlers, etc, now support multiple datasources. Most of the methods now take in a ‘datasource’ argument so you can specifiy it or it defaults to the default one. The changes are transparent and backwards compatible.
This is great news!
Can you have relationships which span across multiple datasources?
I just updated to the latest dev and received a binding error that the
datasource was not defined.
CFORMUtil.getDefaultDatasource() returns the datasource property from
the application settings, but does not account for the datasource
specified in the ORMSettings.
I believe it should return the datasource in ORMSettings if that
exists, otherwise return the Application setting.
In my case I only had the ORM setting defined which causing the error.
Got it, you are right, let me verify a patch and send it your way
Luis F. Majano
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
IECFUG Manager: http://www.iecfug.com
Social: twitter.com/lmajano facebook.com/lmajano
Yep all good now. thanks.
Luis - I found some more issues with the multidatasource integration
and just sent a pull request.