Re: editing data does not work either way

2009-03-22 Thread misterjinx
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

Re: editing data does not work either way

2009-03-22 Thread gimmebucks
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

Re: editing data does not work either way

2009-03-22 Thread misterjinx
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

editing data does not work either way

2009-03-22 Thread misterjinx
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