When you change the value of the primary key and you push the model, the WHERE in the UPDATE statement searching for the new value instead of the old one.

Signed-off-by: Gal Schlezinger <schniz@gmail.com>