Hi,

I'm having issues working with Doctrine2 boolean type(I'm using Mysql db). 
My mapping is basic: 
/**
 * @orm:Column(type="boolean", nullable=false, name="is_deleted")
 */
protected $isDeleted;

When I'm trying to flush the object with $isDeleted=false (or true), the 
entity is not being added to the db. However when I set  $isDeleted='0' (or 
'1') everything works fine.

It seems to me that this is a Doctrine2 issue, however I saw plenty of 
examples where people were using true and false, instead of '0' and '1'.
Is this issue related to Symfony or not? What should I do in order to be 
able to use true and false instead of '0' and '1', as CheckboxField returns 
a true and false values, and it doesn't work when I'm trying to flush.

Regards,
Nikita

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to