mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-571: IntegerType - NULL in datbase should be NULL not 0 #703
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (May 6, 2010).
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.
@doctrinebot commented on GitHub (May 7, 2010):
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.
@doctrinebot commented on GitHub (May 8, 2010):
Comment created by romanb:
@Christian: Thanks.
@doctrinebot commented on GitHub (May 8, 2010):
Issue was closed with resolution "Fixed"