[coldbox-3.8.1] get datasource of entity

am using an entity that uses the datasource specified in application.cfc (not hardcoded) and is used as part of a module in multiple apps (with diff dsn’s).

how can i fetch the datasource its using?

Can you pull the default data source from getApplicationSettings() or were you thinking of a way to interrogate an ORM entity itself and ask it what data source it’s using?



ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

a method in the entitys service will be using a combo of executeQuery() and a vanilla CF query.

the CF query will need to know which datasource the entity is using.

i think getApplicationSettings will do the job, although id be nice to know if there was a way to introspect the entity.