you submit an empty string as id just omit the "id" key altogether and it will work
On 23 Jan., 01:22, opike <hastapast...@gmail.com> wrote: > Sorry, meant to type "debug($this->validationErrors)" > > and incidentally it is showing this now: > > Array > ( > [Alert] => Array > ( > [id] => numeric > ) > > ) > > Does that mean cake is expecting a value to be submitted for the id > field? id is set to auto-increment. > > On Jan 22, 5:19 pm, opike <hastapast...@gmail.com> wrote: > > > > > > > > > Debug is set to 2 and "echo $this->validationErrors" comes up blank. > > > This is what debug($this->data) shows after submission: > > > Array > > ( > > [Alert] => Array > > ( > > [id] => > > [frequency] => 2985 > > [limit_value] => .03 > > [limit_adjustment] => .01 > > [ticker] => AA > > [disabled] => 0 > > ) > > > [Schedule] => Array > > ( > > [name] => 12 > > ) > > > [User] => Array > > ( > > [username] => 6 > > ) > > > ) > > > On Jan 22, 2:41 pm, cricket <zijn.digi...@gmail.com> wrote: > > > > On Sat, Jan 22, 2011 at 3:23 PM, opike <hastapast...@gmail.com> wrote: > > > > Well I looked at the mysql logs and it doesn't look like cakephp is > > > > even getting to the point of issuing the insert statement. > > > > > On Jan 22, 12:54 pm, opike <hastapast...@gmail.com> wrote: > > > >> I'm trying to troubleshoot an add.ctp view and I'd like to be able to > > > >> see the insert statement that cake is using. sql_dump() is not > > > >> currently displaying the insert statement. Is there some way to > > > >> configure sql_dump to do this or do I need to go into the log files? > > > > Do you have debug set to 2 in core.php? Have you checked > > > $this->validationErrors?- Hide quoted text - > > > - Show quoted text - -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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