google-code-export / cfwheels

Automatically exported from code.google.com/p/cfwheels
0 stars 0 forks source link

Multiple Datasources #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The project I'm working on right now features a user Database which is
shared by many applications and each application has its own specific
database so things don't get too messy.
So I was wondering, would it be possible to have a model use another
datasource than the default one?

Probably like the table("name") to break table naming conventions, so it'd be:
<cfcomponent extends="Model">
    <cffunction name="init">
        <cfset dataSource("someOtherDatasource")>
    </cffunction>
</cfcomponent>

Original issue reported on code.google.com by ralf.gru...@gmail.com on 20 Feb 2009 at 3:25

GoogleCodeExporter commented 9 years ago
Merging with issue 70.

Original comment by per.djurner@gmail.com on 23 Feb 2009 at 9:32