Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top