bittersweetryan
bittersweetryan

Reputation: 3443

Mapping for component xxx not found in ORM app

I'm doing some TDD with a ColdFusion ORM application so I'm letting the application.cfc in my tests directory so I'm setting dbcreate="update" so the tests will create the database tables. Every time I change a model's method and re-run my tests I get the following error:

Mapping for component models.user.User not found.

If I restart the server the error goes away, however this is a terrible workflow so I'm looking for a better way to fix this problem.

Upvotes: 0

Views: 474

Answers (1)

Henry
Henry

Reputation: 32905

have you tried dbcreate=dropcreate?

From my experience, update or dropcreate might fail for the first time, but if you ormreload again, it might just work.

Upvotes: 1

Related Questions