-2

I know i have to declare the unique column(PK) with ID.But the database is already exist, and was created with a different name(Reg_name) than ID.How can i set in cakephp to use Reg_name insted of id?

Andrewboy
  • 364
  • 5
  • 15
  • 1
    It's really not that hard to find **https://google.com/search?q=cakephp+custom+primary+key+name** – ndm Dec 22 '14 at 00:07

1 Answers1

0
var $primaryKey = 'example_id';
Undo
  • 25,519
  • 37
  • 106
  • 129
Andrewboy
  • 364
  • 5
  • 15