aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity
diff options
context:
space:
mode:
authorJeremy <j0k3r@users.noreply.github.com>2015-02-09 15:52:10 +0100
committerJeremy <j0k3r@users.noreply.github.com>2015-02-09 15:52:10 +0100
commitcbce162b407024882d8c37a7e3298c85175d2651 (patch)
treeab01cb903d07a96fd7e99043c8305b055182fd6f /src/Wallabag/CoreBundle/Entity
parent89c03230c3d51e618608b044b0e3f45cf0c06a11 (diff)
parentfb8389f4632a0350cf33653f90be49a1c5af2c10 (diff)
downloadwallabag-cbce162b407024882d8c37a7e3298c85175d2651.tar.gz
wallabag-cbce162b407024882d8c37a7e3298c85175d2651.tar.zst
wallabag-cbce162b407024882d8c37a7e3298c85175d2651.zip
Merge pull request #1063 from wallabag/v2-rename-tags-entity
Rename Tags entity
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Tag.php (renamed from src/Wallabag/CoreBundle/Entity/Tags.php)28
-rw-r--r--src/Wallabag/CoreBundle/Entity/TagsEntries.php8
2 files changed, 18 insertions, 18 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tags.php b/src/Wallabag/CoreBundle/Entity/Tag.php
index eab91ba0..31017563 100644
--- a/src/Wallabag/CoreBundle/Entity/Tags.php
+++ b/src/Wallabag/CoreBundle/Entity/Tag.php
@@ -5,28 +5,28 @@ namespace Wallabag\CoreBundle\Entity;
5use Doctrine\ORM\Mapping as ORM; 5use Doctrine\ORM\Mapping as ORM;
6 6
7/** 7/**
8 * Tags 8 * Tag
9 * 9 *
10 * @ORM\Table(name="tags") 10 * @ORM\Table(name="tag")
11 * @ORM\Entity 11 * @ORM\Entity
12 */ 12 */
13class Tags 13class Tag
14{ 14{
15 /** 15 /**
16 * @var integer 16 * @var integer
17 * 17 *
18 * @ORM\Column(name="id", type="integer", nullable=false) 18 * @ORM\Column(name="id", type="integer")
19 * @ORM\Id 19 * @ORM\Id
20 * @ORM\GeneratedValue(strategy="IDENTITY") 20 * @ORM\GeneratedValue(strategy="AUTO")
21 */ 21 */
22 private $id; 22 private $id;
23 23
24 /** 24 /**
25 * @var string 25 * @var string
26 * 26 *
27 * @ORM\Column(name="value", type="text", nullable=true) 27 * @ORM\Column(name="label", type="text")
28 */ 28 */
29 private $value; 29 private $label;
30 30
31 /** 31 /**
32 * Get id 32 * Get id
@@ -39,24 +39,24 @@ class Tags
39 } 39 }
40 40
41 /** 41 /**
42 * Set value 42 * Set label
43 * 43 *
44 * @param string $value 44 * @param string $label
45 * @return Tags 45 * @return Tag
46 */ 46 */
47 public function setValue($value) 47 public function setLabel($label)
48 { 48 {
49 $this->value = $value; 49 $this->label = $label;
50 50
51 return $this; 51 return $this;
52 } 52 }
53 53
54 /** 54 /**
55 * Get value 55 * Get label
56 * 56 *
57 * @return string 57 * @return string
58 */ 58 */
59 public function getValue() 59 public function getLabel()
60 { 60 {
61 return $this->value; 61 return $this->value;
62 } 62 }
diff --git a/src/Wallabag/CoreBundle/Entity/TagsEntries.php b/src/Wallabag/CoreBundle/Entity/TagsEntries.php
index 6b0cea0d..22826387 100644
--- a/src/Wallabag/CoreBundle/Entity/TagsEntries.php
+++ b/src/Wallabag/CoreBundle/Entity/TagsEntries.php
@@ -15,23 +15,23 @@ class TagsEntries
15 /** 15 /**
16 * @var integer 16 * @var integer
17 * 17 *
18 * @ORM\Column(name="id", type="integer", nullable=false) 18 * @ORM\Column(name="id", type="integer")
19 * @ORM\Id 19 * @ORM\Id
20 * @ORM\GeneratedValue(strategy="IDENTITY") 20 * @ORM\GeneratedValue(strategy="AUTO")
21 */ 21 */
22 private $id; 22 private $id;
23 23
24 /** 24 /**
25 * @var integer 25 * @var integer
26 * 26 *
27 * @ORM\Column(name="entry_id", type="integer", nullable=true) 27 * @ORM\Column(name="entry_id", type="integer")
28 */ 28 */
29 private $entryId; 29 private $entryId;
30 30
31 /** 31 /**
32 * @var integer 32 * @var integer
33 * 33 *
34 * @ORM\Column(name="tag_id", type="integer", nullable=true) 34 * @ORM\Column(name="tag_id", type="integer")
35 */ 35 */
36 private $tagId; 36 private $tagId;
37 37