Hello
I trust you are all doing great. I have a question about configuring
HABTM.
I get the error message "Error: Database table countries for model
servesCountries was not found.".
"servesCountries" is a HABTM model which is configured as follows:
var $hasAndBelongsToMany = array(
"servesCountries" => array(
"className" => "Country"
));
The model "Country" is configured as follows:
var $useTable = "COUNTRY";
The issue is that the HABTM model insists on a table "countries" but
the table is in fact called "COUNTRY" as configured in the model
"Country".
How do I configure the HABTM model to suppress inflecting table names
through class names, i.e. to use "COUNTRY" as table name?
I searched the Book and Google, but was not able to find a solution.
Thanks a lot for your well appreciated advice.
Lex
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