ORM services multiple datasource support finalized!

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.

Thanks Mike!

This is great news!

Can you have relationships which span across multiple datasources?

I think that is a limitation of the CF orm I believe.

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Luis -

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
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

try now

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
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.

thanks,

.brett