It is happening in model B. If I remove the call to the injected OCM
Instance variable and call the method directly it works.
Here is the top of model b:
<cfcomponent name="Permissions"
extends="cfcRetailHub.model.ApplicationModelHelper" output="false">
<!------------------------------------------- CONSTRUCTOR
---------------------------------------------->
<cfproperty name="Dsn" inject="Coldbox:Setting:Datasources"
scope="Instance"/>
<cfproperty name="DataUserLevels" inject="Ocm" scope="Instance"/>
<cffunction name="init" output="false" returntype="Permissions">
<cfreturn this>
</cffunction>
<!------------------------------------------- OCM : PUBLIC
---------------------------------------------------->
<cffunction name="DataUserLevels" access="public" returntype="query"
output="false">
<cfscript>
var AppLevels=UserLevels();
return AppLevels;
</cfscript>
</cffunction>
<!--- ---------------------------------------- PUBLIC
---------------------------------------------------->
top of model a:
<cfcomponent name="Menu"
extends="cfcRetailHub.model.ApplicationModelHelper" output="false">
<!--- ---------------------------------------- CONSTRUCTOR
---------------------------------------------->
<cfproperty name="SessionStorage"
inject="Coldbox:Plugin:SessionStorage" scope="Instance"/>
<cfproperty name="DataNav" inject="Ocm" scope="Instance"/>
<cfproperty name="Permissions"inject="Model" scope="Instance"/>
<cffunction name="init" output="false" returntype="Menu">
<cfreturn this>
</cffunction>
<!------------------------------------------- OCM : PUBLIC
---------------------------------------------------->
<cffunction name="DataNav" access="public" returntype="struct"
output="false">
<cfscript>
var DataNav=StructNew();
DataNav.navRoutes=navRoutes();
DataNav.navRouteConditions=navRouteConditions();
DataNav.navRoutesByLevel=navRoutesByLevel();
return DataNav;
</cfscript>
</cffunction>
<!--- ---------------------------------------- PUBLIC
---------------------------------------------------->
<cffunction name="sGetNav" access="public" returntype="struct"
output="false">
<cfscript>
var sGetNav=StructNew();
sGetNav=Instance.DataNav;
return sGetNav;
</cfscript>
</cffunction>
> > To post to this group, send
emailto...@googlegroups.com
> > To unsubscribe from this group, send
emailtocoldbo...@googlegroups.com