Directly under my model folder, I have a SecurityService.cfc component. This component has an injected property called ‘UserService’. Now, the UserService.cfc component is located under /model/User/UserService.cfc. In this same folder is a User.cfc component (/model/User/User.cfc).
Now, my UserService.cfc is defined as a VirtualEntityService object as follows:
component name=“UserService” extends=“coldbox.system.orm.hibernate.VirtualEntityService” accessors=“true” singleton {
public function init(){
super.init( entityName=“User”, useQueryCaching=true );
return this;
}
…
When the app loads, I am getting the error “A CFC with entityname User could not be found …”.
I am confused here - why would the application be able to find both the SecurityService.cfc and the UserService.cfc components, but not the User.cfc?