1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Merge pull request #3373 from wallabag/change-readingtime-notnull

Changed reading_time field to prevent null values
This commit is contained in:
Nicolas Lœuillet 2017-10-18 11:33:30 +02:00 committed by GitHub
commit 1c5081cdc5
2 changed files with 66 additions and 2 deletions

View file

@ -180,11 +180,11 @@ class Entry
/**
* @var int
*
* @ORM\Column(name="reading_time", type="integer", nullable=true)
* @ORM\Column(name="reading_time", type="integer", nullable=false)
*
* @Groups({"entries_for_user", "export_all"})
*/
private $readingTime;
private $readingTime = 0;
/**
* @var string