Here's some real strange stuff. Railo 4.2.2 (latest/bleeding edge). Create a user, persist, flush and then query the db via sql and ORM:
<cfset u = var user = new com.sharp.model.user.User({username: "admin", password: hash("p@ssw3rd"), isAdmin: true})>
<cfset entitySave( u )>
<cfset ormFlush()>
<cfquery name="foo">
select *
from user
</cfquery>
<cfdump var="#foo#" />
<cfdump var="#ormExecuteQuery('from User')#" />
And here's what I see:
What is up with that? Reloading the page adds another one to the array, so it's saving it somewhere, but not in my dsn??
ORM settings from App.cfc?
this.datasource = 'rrm';
this.ormSettings = { cfclocation: ormPaths, logSQL: false, flushAtRequestend: false, eventHandling: true, saveMapping: false, dbCreate: 'update', secondaryCacheEnabled: false };