Should this property name="userService" inject="entityService:user";
be property name="userService" inject="userService:user"; ?? -----Original Message----- From: Glyn Jackson [mailto:glyn.jack...@newebia.co.uk] Sent: Monday, 5 July 2010 5:49 AM To: cf-talk Subject: ColdBox: and CF9 ORM: Mapping for component user not found Hi, can anyone help. I am playing around with CB 3 and CF9 ORM. I am not sure its wiring everything up correctly as I get the message... Error Messages: Mapping for component user not found. Either the mapping for this component is missing or the application must be restarted to generate the mapping. I have followed the sample app 'task manager' but think i have missed something.. my handler login.cfc... property name="userService" inject="entityService:user"; /* Index handler */ function index(event){ var rc = event.getCollection(); userService.get(); event.setView("login/index"); } my user.cfc component output="false" persistent="true"{ property name="user_id" fieldType="id"; property name="user_username" notnull="true" type="string"; property name="user_password" type="string"; property name="user_email" type="string"; property name="user_role" type="string"; property name="user_created" type="date" dbdefault="#now()#"; user function init() output=false{ return this; } } my service component output="false" singleton{ userService function init() output=false{ return this; } User function getUser(user_id="") output=false{ if( len(arguments.user_id) ){ var user = entityLoad("User",arguments.user_id,true); if(NOT isNull(user) ){ return user; } } return entityNew("User"); } etc... app.cfc // ORM Setup this.ormEnabled = true; this.datasource = "testDS"; this.ormSettings = { dbcreate = "update", dialect = "MySQLwithInnoDB", logSQL = true, eventhandling = true, eventhandler = "model.ORMEventHandler", flushAtRequestEnd = false }; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335057 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm