[coldbox:25395] ORM issue - Messages: No entity (persitent component) with name [Contact] found, available entities

Two things:

1.cborm requires a mapping in your Application.cfc (which is why, even it #2 was correct, it wouldn’t be able to find the entity - it couldn’t parse the inheritance)

    this.mappings[ "/cborm" ] = COLDBOX_APP_ROOT_PATH & "modules/cborm";

  1. Error message:
No entity (persitent component) with name [Contact] found, available entities are []

Your model is model/contacts.cfc

Change the file name to the singular or the call for the model to the plural and you’re good to go.

Also, I would suggest using a consistent case convention for your models. It will make your life much easier, should you ever wish to deploy on Linux.


Ah the mapping suggestion answers the remaining question I had from my ‘solved’ post then - I found out I was missing the entire module a few minutes ago (doh!).

Good point on the naming convention, contacts is actually from the documentation: http://coldbox.ortusbooks.com/content/models/coding_activeentity_style/contactcfc.html perhaps that should be ammended, it’s late now but I’ll see about finding the proper channel for suggestions tomorrow.

Glad you got this sorted, and great seeing you use CommandBox to get up and running. If you’d like to submit a change to the docs, they are stored in a GitHub repo here:


Standard pull request rules apply, and make sure you send your pull to the development branch.



ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com