DDC-710: DecimalType - NULL in database should be NULL not 0 #5223

Closed
doctrinebot opened this Issue Jul 21, 2010 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user pschwisow:

DecimalType::convertToPHPValue should return NULL if the value in the database is NULL. This is similar to the issue with IntegerType that was fixed with #DDC-571.

The fix would be to replace

return (double) $value;

with

return is_null($value) ? null : (double) $value;

@doctrinebot

Comment created by @beberlei:

Fixed

@doctrinebot

Issue was closed with resolution "Fixed"

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.0-BETA3 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