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:
commit
1c5081cdc5
2 changed files with 66 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue