Thanks a lot for your answer.
I will do as you suggest: get the original field values, merge with
the new ones and then updateAll.
Just as a curiousity, right now I have made it work with some kind of
SQL injection:
Before calling updateAll I modify the form values and add the MySQL
statement which will do the work.
$fields[$column] = 'concat('.$column.', if('.$column.'=\'\', \'\',\',
\') ,'.$value.')';
Shouldn't Cake prevent this from being executed?
On Oct 5, 5:16 pm, cricket <[email protected]> wrote:
> I don't think there's getting around using a loop, aside from using
> Set class, perhaps. Upon submission, do another find to get the
> original values and concat them with the new data.
>
> One suggestion I have is to make this action append() rather than
> edit() just so things remain clear.
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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en