Skip to content

Commit

Permalink
Merge pull request #8 from marijn/relax-doctrine-type-conversion
Browse files Browse the repository at this point in the history
Relax conversion rules.
  • Loading branch information
ramsey committed Nov 29, 2012
2 parents 5215d7e + 2612648 commit 96d8414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rhumsaa/Uuid/Doctrine/UuidType.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $pla
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
if (null === $value) {
if (empty($value)) {
return null;
}

Expand Down

0 comments on commit 96d8414

Please sign in to comment.