1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-10 18:51:02 +00:00

Changed reading_time field to prevent null values

This commit is contained in:
Nicolas Lœuillet 2017-10-08 22:08:18 +02:00
parent f44a927530
commit 88bac4a33e
2 changed files with 65 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