Hi Wonzbak,

Please refer to the changeset in https://github.com/doctrine/dbal/pull/625
and to the discussion going on there. Consider adding your feedback there
as well.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 18 November 2014 14:12, wonzbak <[email protected]> wrote:

> Hello,
>
> I have an entity with boolean fields
>
> Here's my yml mapping:
>
> Edd\VavBundle\Entity\Broadcasting:
>     type: entity
>     table: broadcasting
>     id:
>         id_broadcasting:
>             type: integer
>             generator: {strategy: IDENTITY}
>     fields:
>         flotting_validation:
>             type: boolean
>             nullable: true
>         enrichment_validation:
>             type: boolean
>             nullable: true
>
>
> With DBAL v2.4.2, I can store null value on these fields.
>
> Since v2.4.3 I can't, false is written instead of null.
>
> in this line
> https://github.com/doctrine/dbal/blob/v2.4.3/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php#L612
> I can see that null value are converted to false.
>
>
> Is there a way to insert null value on boolean field?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to