Quantcast
Channel: Cakephp: Update records without refering the primary key - Stack Overflow
Viewing all articles
Browse latest Browse all 3

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

$
0
0

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 all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>