aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-02-26 13:59:08 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-02-26 18:14:42 +0100
commit4dc872238a61f33c886c423c5812cc578b3b1cdc (patch)
tree4a9413cca2b24e9290057159eeb3833c20aefddb /src/Wallabag/CoreBundle/Entity/Entry.php
parent9eab365e28de969036e58245a57a8a6418541b3c (diff)
downloadwallabag-4dc872238a61f33c886c423c5812cc578b3b1cdc.tar.gz
wallabag-4dc872238a61f33c886c423c5812cc578b3b1cdc.tar.zst
wallabag-4dc872238a61f33c886c423c5812cc578b3b1cdc.zip
Rename CommentBundle with AnnotationBundle
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Entry.php')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entry.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php
index 5cf84f03..bd712a04 100644
--- a/src/Wallabag/CoreBundle/Entity/Entry.php
+++ b/src/Wallabag/CoreBundle/Entity/Entry.php
@@ -9,7 +9,7 @@ use JMS\Serializer\Annotation\Groups;
9use JMS\Serializer\Annotation\XmlRoot; 9use JMS\Serializer\Annotation\XmlRoot;
10use Symfony\Component\Validator\Constraints as Assert; 10use Symfony\Component\Validator\Constraints as Assert;
11use Wallabag\UserBundle\Entity\User; 11use Wallabag\UserBundle\Entity\User;
12use Wallabag\CommentBundle\Entity\Comment; 12use Wallabag\AnnotationBundle\Entity\Annotation;
13 13
14/** 14/**
15 * Entry. 15 * Entry.
@@ -99,12 +99,12 @@ class Entry
99 private $updatedAt; 99 private $updatedAt;
100 100
101 /** 101 /**
102 * @ORM\OneToMany(targetEntity="Wallabag\CommentBundle\Entity\Comment", mappedBy="entry", cascade={"persist", "remove"}) 102 * @ORM\OneToMany(targetEntity="Wallabag\AnnotationBundle\Entity\Annotation", mappedBy="entry", cascade={"persist", "remove"})
103 * @ORM\JoinTable 103 * @ORM\JoinTable
104 * 104 *
105 * @Groups({"entries_for_user", "export_all"}) 105 * @Groups({"entries_for_user", "export_all"})
106 */ 106 */
107 private $comments; 107 private $annotations;
108 108
109 /** 109 /**
110 * @var string 110 * @var string
@@ -366,19 +366,19 @@ class Entry
366 } 366 }
367 367
368 /** 368 /**
369 * @return ArrayCollection<Comment> 369 * @return ArrayCollection<Annotation>
370 */ 370 */
371 public function getComments() 371 public function getAnnotations()
372 { 372 {
373 return $this->comments; 373 return $this->annotations;
374 } 374 }
375 375
376 /** 376 /**
377 * @param Comment $comment 377 * @param Annotation $annotation
378 */ 378 */
379 public function setComment(Comment $comment) 379 public function setAnnotation(Annotation $annotation)
380 { 380 {
381 $this->comments[] = $comment; 381 $this->annotations[] = $annotation;
382 } 382 }
383 383
384 /** 384 /**