Skip to content

Commit

Permalink
Fix null value
Browse files Browse the repository at this point in the history
  • Loading branch information
Smeagolworms4 authored Oct 30, 2018
1 parent e0ffd21 commit d39428e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TinyInt.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $pla
}

public function convertToPHPValue($value, AbstractPlatform $platform) {
return (int)$value;
return $value;
}

public function convertToDatabaseValue($value, AbstractPlatform $platform) {
return (int)$value;
return $value;
}

public function getName() {
return self::TINYINT;
}
}
}

0 comments on commit d39428e

Please sign in to comment.