Jump to content

Scholtzz

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

About Scholtzz

  • Birthday 02/27/1984

Profile Information

  • Gender
    Male

Scholtzz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I solved the problem... My table towns, primary field was called town_id and not id
  2. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.