Sunday, May 19, 2013

Facing problem with ENUM field with option 0,1 in cake 2.3.5

At the time of updation i am using 
$this->Post->saveField('is_deleted', 1) / $this->Post->saveField('is_deleted', '1') - but not working .
It is only working when i am using $this->Post->saveField('is_deleted', TRUE)
How do i fix this as the is_deleted field is ENUM field with default value 0.

--
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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: