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
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
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