Hello, I have a very weird issue. As the subject line says, in one of my models I get empty rows being inserted into the database.
I've put some logging into beforeSave() and haven't been able to get too much info. I saw records being saved with ID NULL - which I believe is how it should be when create() is called since the database id is auto-increment. But there are also records being saved with ID = 0, which may be the problem? The thing that really makes no sense is that these rows being created don't pass Validation. And in my controllers $this->Model->save() is always called like so: if ($this->Model->validates()) { $this->Model->save($data, array('validate' => false)); } I've been trying to figure this out for some time, and really have no clue. Sometimes I've also noticed if I visit the edit() action of the controller, ie domain.com/model/edit?id=123 and I hit Refresh it asks me to confim form resubmission, even though I never submitted a form, just went directly the URL. That might have something to do with it. Any advice would be greatly appreciated. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en