Have you cleared your cache? Clear the contents of all folders under 
/app/tmp/cache. Then run your app with debug set to 2 at least once (this 
refills the cache). If you are using <code> var $persistModel = true; </code> 
in your app_controller, disable that first then re-enable.

Jeremy Burns
[email protected]

On 10 Apr 2010, at 06:46, Josh wrote:

> Hello (help!!!),
> 
> I had to rename a table in my database. I was able to specify the
> useTable in my model so there was no significant knock-on from this
> change.
> 
> But, my unit tests won't recognize the new table name during table
> creation. I can see in the SQL dump that the old table has been
> created (per Inflector:pluralize), and from the error...
> 
> "Database table test_suite_datums for model Datum was not found."
> 
> ... I can see that simpleTest knows what the table name should be
> (datums is the new useTable... replacing the default data--which
> conflicts with Cake). I have tried emptying cache, writing a custom
> inflection, and I have tried putting in undocumented members--ie
> useTable--in the fixture. But, I can't seem to solve this problem, and
> now none of my tests can run since this fixture is instantiated for
> all test cases.
> 
> Any suggestions? I have seen similar problems to this which were never
> solved:
> 
> http://groups.google.com/group/cake-php/browse_thread/thread/fedca8aff44d9a4f/9040989b8f883180?lnk=gst&q=fixture+usetable#9040989b8f883180
> 
> I am pulling my hair out. I'd prefer not rename the model entirely.
> There must be a clean way to make the fixture recognize the Model
> useTable.
> 
> Thanks
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
> 
> To unsubscribe, reply using "remove me" as the subject.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to