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:
Issue was closed with resolution "Fixed"