Quantcast
Viewing latest article 2
Browse Latest Browse All 3

Answer by Saanch for Cakephp: Update records without refering the primary key

Your id_thred field doesn't seems to be unique. So even if you make a SQL query to update the data, it will update the two rows. is this what yo are expecting?

My suggestion would be call a find method with condition id_thread and get the primary key id and update the value using saveField method


Viewing latest article 2
Browse Latest Browse All 3

Trending Articles