Model field warning 512 try implementing a schema in CakePHP 1.2
While trying to implement a contact form with no table set (i.e. $useTable=false) I came across the following 512 warning :-
- Warning (512): (FormHelper::create) Unable to use model field data. If you are using a model without a database table, try implementing schema() [CORE/cake/libs/view/helpers/form.php, line 124]
- Warning (512): (Model::getColumnType) Unable to locate model field data. If you are using a model without a database table, try implementing schema() [CORE/cake/libs/model/model.php, line 959]
The solution to this warning was to create a schema manually as suggested by the warning messages, for example :-
Show Plain TextPHP code
- );