DDC-571: IntegerType - NULL in datbase should be NULL not 0 #5077

doctrinebot opened this Issue May 6, 2010 · 3 comments

1 participant


Jira issue originally created by user drevolution:

I think that IntegerType::convertToPHPValue() should return NULL if we have NULL value in database. So insted

return (int) $value;

there will be

return is_null($value) ? NULL : (int) $value;

Or there could be even some sophisticated checking if column is nullable.


Comment created by shurakai:

I've fixed this and pushed it into http://github.com/Shurakai/doctrine2

Therefore, Roman might pull it back into the repo.


Comment created by romanb:

@Christian: Thanks.


Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.0-BETA2 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment