I am using cakephp2. How to delete one record with a condition?
I have a table with names with fields id, title, post. The primary key is id. I would like to delete one entry with id = 5?
How is this possible?
That is, I want to convert the request,
$this->query('delete * from posts where id = 5'); To cakephp ?
How is this function written in cakephp modeln named Post?
source
share