diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Entry.php | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index 08a67c34..49affe2a 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php | |||
@@ -24,7 +24,8 @@ 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="uid", columns={"uid"}) | 27 | * @ORM\Index(name="uid", columns={"uid"}), |
28 | * @ORM\Index(name="hashedurl", columns={"hashedurl"}) | ||
28 | * } | 29 | * } |
29 | * ) | 30 | * ) |
30 | * @ORM\HasLifecycleCallbacks() | 31 | * @ORM\HasLifecycleCallbacks() |
@@ -73,6 +74,13 @@ class Entry | |||
73 | private $url; | 74 | private $url; |
74 | 75 | ||
75 | /** | 76 | /** |
77 | * @var string | ||
78 | * | ||
79 | * @ORM\Column(name="hashedurl", type="text", nullable=true) | ||
80 | */ | ||
81 | private $hashedUrl; | ||
82 | |||
83 | /** | ||
76 | * @var bool | 84 | * @var bool |
77 | * | 85 | * |
78 | * @Exclude | 86 | * @Exclude |
@@ -763,4 +771,24 @@ class Entry | |||
763 | 771 | ||
764 | return $this; | 772 | return $this; |
765 | } | 773 | } |
774 | |||
775 | /** | ||
776 | * @return string | ||
777 | */ | ||
778 | public function getHashedUrl() | ||
779 | { | ||
780 | return $this->hashedUrl; | ||
781 | } | ||
782 | |||
783 | /** | ||
784 | * @param mixed $hashedUrl | ||
785 | * | ||
786 | * @return Entry | ||
787 | */ | ||
788 | public function setHashedUrl($hashedUrl) | ||
789 | { | ||
790 | $this->hashedUrl = $hashedUrl; | ||
791 | |||
792 | return $this; | ||
793 | } | ||
766 | } | 794 | } |