title: cakephp 2, editing form creates a new record instead of updating it
body: <p>I'm using the console cake bake to generate forms automatically from the database.
  I have a problem though, one of my controllers instead of updating a record after editing it, is creating a new record into the database.</p>