I am creating an "artificial temp table" dynamically during a single
page request and need to be able to instantiate a model object using
this table so I can CRUD it. All of this needs to happen during a
single page call (i.e. no postback or redirects between table creation
and model instantiation).

I keep getting "database table for model was not found". The bottom
line is that Cake is not getting refreshed with the newly added table
so there's no knowledge of it inside the framework. I proved this by
manually entering the table name in the ClassRegistry::init() call
(normally the table name is assigned by variable because the table
name is dynamically generated, etc.), and then re-running the request
works no problem.

Answering the obvious, I'm only trying to do this because using
standard MySQL temp tables don't work in Cake as expected. In other
words, I can't instantiate a model object using the temp table.

Apparently, there must be some routine which "refreshes" or updates
the available database tables. Any insight on this is appreciated!

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