aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-04-15 13:42:13 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-08-23 16:49:21 +0200
commita7e2218e253138ed53e18b4775dce291c78246c5 (patch)
treeb42d5a26987149f8372c49ef7f78a63ed81867e3 /src
parent222e09f140099f3b1b8f6db1846d35e6810d43a3 (diff)
downloadwallabag-a7e2218e253138ed53e18b4775dce291c78246c5.tar.gz
wallabag-a7e2218e253138ed53e18b4775dce291c78246c5.tar.zst
wallabag-a7e2218e253138ed53e18b4775dce291c78246c5.zip
Add test and fix migration
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 3c742828..a629efc7 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -630,7 +630,8 @@ class Entry
630 public function generateUuid() 630 public function generateUuid()
631 { 631 {
632 if (empty($this->uuid) || is_null($this->uuid)) { 632 if (empty($this->uuid) || is_null($this->uuid)) {
633 $this->uuid = uniqid(); 633 // @see http://blog.kevingomez.fr/til/2015/07/26/why-is-uniqid-slow/ for true parameter
634 $this->uuid = uniqid('', true);
634 } 635 }
635 } 636 }
636} 637}