Sunday, November 25, 2012

Re: Cake not putting quotes around field value when doing an UpdateAll

that's well documented:
http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-updateall-array-fields-array-conditions

Am Samstag, 24. November 2012 21:16:29 UTC+1 schrieb Daniel:
I put quotes around the field value and this fixed the problem:
    'MsgReceived.sender' => '"'.$username.'"'
 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: