Monday, 19 August 2013

CakePHP fixtures for views not tables

CakePHP fixtures for views not tables

I've got a fixture that is based off of a MySQL view as opposed to a
standard table. When I run the unit tests I get the following error
message.
MissingTableException : Table price_records for model PriceRecord was not
found in datasource test.
Is there someway that I can get Cake to build the MySQL view as a table or
is there another work around?

No comments:

Post a Comment