Hi all
I am a newbie to cakePHP and need some help
I am using the $belongsto association variable in my User module, and $scaffold in my controller.
User Module
class User extends AppModel
{
var $name = 'User';
var $belongsTo = array (
'Town' => array(
'className' => 'Town',
'conditions'=> '',
'order'=> '',
'foreignKey'=>'town_id'
),
When I run /users/add in the browser, I get this Error message:
and this is the sql query:
All my other $belongsTo associations are working, except this one... I have dropped the table and recreated it, changed the table name from cities to towns, but I still get the same error over and over...
please help