aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-29 10:09:44 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-12-29 10:09:44 +0100
commit7239082a5e290dada1d393f7a25acebb09ace2de (patch)
tree97915f7266cca85ee42a3494f0a8ae4831917366 /src/Wallabag/CoreBundle/Entity/Entry.php
parent89cd670abfc77ca268a538c9323a4026fec06fc7 (diff)
downloadwallabag-7239082a5e290dada1d393f7a25acebb09ace2de.tar.gz
wallabag-7239082a5e290dada1d393f7a25acebb09ace2de.tar.zst
wallabag-7239082a5e290dada1d393f7a25acebb09ace2de.zip
Renamed uuid to uid
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 4c9d518f..7276b437 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -24,7 +24,7 @@ use Wallabag\AnnotationBundle\Entity\Annotation;
24 * options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"}, 24 * options={"collate"="utf8mb4_unicode_ci", "charset"="utf8mb4"},
25 * indexes={ 25 * indexes={
26 * @ORM\Index(name="created_at", columns={"created_at"}), 26 * @ORM\Index(name="created_at", columns={"created_at"}),
27 * @ORM\Index(name="uuid", columns={"uuid"}) 27 * @ORM\Index(name="uid", columns={"uid"})
28 * } 28 * }
29 * ) 29 * )
30 * @ORM\HasLifecycleCallbacks() 30 * @ORM\HasLifecycleCallbacks()
@@ -47,11 +47,11 @@ class Entry
47 /** 47 /**
48 * @var string 48 * @var string
49 * 49 *
50 * @ORM\Column(name="uuid", type="string", length=23, nullable=true) 50 * @ORM\Column(name="uid", type="string", length=23, nullable=true)
51 * 51 *
52 * @Groups({"entries_for_user", "export_all"}) 52 * @Groups({"entries_for_user", "export_all"})
53 */ 53 */
54 private $uuid; 54 private $uid;
55 55
56 /** 56 /**
57 * @var string 57 * @var string
@@ -652,34 +652,34 @@ class Entry
652 /** 652 /**
653 * @return string 653 * @return string
654 */ 654 */
655 public function getUuid() 655 public function getUid()
656 { 656 {
657 return $this->uuid; 657 return $this->uid;
658 } 658 }
659 659
660 /** 660 /**
661 * @param string $uuid 661 * @param string $uid
662 * 662 *
663 * @return Entry 663 * @return Entry
664 */ 664 */
665 public function setUuid($uuid) 665 public function setUid($uid)
666 { 666 {
667 $this->uuid = $uuid; 667 $this->uid = $uid;
668 668
669 return $this; 669 return $this;
670 } 670 }
671 671
672 public function generateUuid() 672 public function generateUid()
673 { 673 {
674 if (null === $this->uuid) { 674 if (null === $this->uid) {
675 // @see http://blog.kevingomez.fr/til/2015/07/26/why-is-uniqid-slow/ for true parameter 675 // @see http://blog.kevingomez.fr/til/2015/07/26/why-is-uniqid-slow/ for true parameter
676 $this->uuid = uniqid('', true); 676 $this->uid = uniqid('', true);
677 } 677 }
678 } 678 }
679 679
680 public function cleanUuid() 680 public function cleanUid()
681 { 681 {
682 $this->uuid = null; 682 $this->uid = null;
683 } 683 }
684 684
685 /** 685 /**