I'm trying to get entity injection to work in a CB 4.1/CF11 app. I have the following:
application.cfc:
this.mappings["/models"] = getDirectoryFromPath(getCurrentTemplatePath()) & "models/";
this.mappings["/cborm"] = getDirectoryFromPath(getCurrentTemplatePath()) & "modules/cborm";
// ORM configuration
this.dataSource = "Brotherhood";
this.ormEnabled = true;
this.ormSettings = {
cfclocation = "/models",
dbcreate = "none",
dialect = "MicrosoftSQLServer",
flushatrequestend = false,
autoManageSession = false,
eventHandling = true,
eventhandler = "models.ORMEventHandler"
models/ORMEventHandler:
component extends="cborm.models.EventHandler"{
}
partcipant.cfc:
component persistent="true" table="tblParticipant" entityname="participant" schema="dbo" output="false"
{
property name="arrayOfStructsSort" inject="models:UDF:arrayOfStructsSort:{this}" scope="this" persistent="false";
property name="logger" inject="logbox:logger:{this}" persistent="false" scope="this";
.......
}
Both logger and arrayOfStructsSort are undefined when I dump the entity. I have successfully used entity injection in my 3.8. Can't seem to find what I am missing. Any ideas where to look next?
thanks in advance.
Byron