thanks for your reply. finally i figured it out. for every entry of
the $this->data array i had to supply the id for rows each that should
be updated (i had to insert hidden fields in the form). those who
don't have ids are inserted. that solved my problem, now it's working
like a charm :). thanks
you should reassign the $key value before calling $this->Model->save.
otherwise will assume that you are inserting new row.
hope that'll help
On Mar 23, 1:22 am, misterjinx wrote:
> It's me again. I put validation to false in the saveAll() method, and
> it's half working right now. The main tabl
It's me again. I put validation to false in the saveAll() method, and
it's half working right now. The main table it's updated instead of
inserting a new row, but others are not. It keeps inserting new
records instead of updating those who already exists and inserting new
ones just where's the cas
Hello all,
I've been trying all day long to figure it out an edit action of one
of my controllers, but it just doesn't work. I have a model Contact
which has many Email and Phonenumber. I've created the view, populated
with data from the tables, and proceeded to the edit action. And here
comes th