Re: Cake 2.0 - How to Specify a Primary Key

2013-01-11 Thread Devario Johnson
kudos On Tuesday, January 8, 2013 9:42:28 PM UTC-5, Andras Kende wrote: http://book.cakephp.org/2.0/en/models/model-attributes.html#primarykey app/Models/User.php : class User extends AppModel { public $primaryKey = 'users_id'; } Andras Kende http://www.kende.com On

Cake 2.0 - How to Specify a Primary Key

2013-01-08 Thread Brian QIS
Hello, We're coming from a custom CMS, and our MySQL database naming convention is a bit different. So, if I have a table called users with a primary key of users_id, how do I set my model to look for users.users_id as the record ID rather than users.id? Thanks! -- Like Us on FaceBook

Re: Cake 2.0 - How to Specify a Primary Key

2013-01-08 Thread Andras Kende
http://book.cakephp.org/2.0/en/models/model-attributes.html#primarykey app/Models/User.php : class User extends AppModel { public $primaryKey = 'users_id'; } Andras Kende http://www.kende.com On Jan 8, 2013, at 1:52 PM, Brian QIS bhan...@quasars.com wrote: Hello, We're coming