Saturday, March 5, 2011

Re: Firing queries in cakephp

$this->Model->id = someId;

$this->Model->save(dataArray);

On Mar 5, 6:13 am, Sam Bernard <sambern...@gmail.com> wrote:
> Is the id of the associated row included in your data? If not, it will do an
> insert and not an update.

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: