1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Developtech\AgilityBundle\Entity; |
4
|
|
|
|
5
|
|
|
use Doctrine\ORM\Mapping as ORM; |
6
|
|
|
|
7
|
|
|
use Developtech\AgilityBundle\Model\FeatureModel; |
8
|
|
|
|
9
|
|
|
/** |
10
|
|
|
* Feedback |
11
|
|
|
* |
12
|
|
|
* @ORM\Entity(repositoryClass="Developtech\AgilityBundle\Repository\FeatureRepository") |
13
|
|
|
* @ORM\Table(name="developtech_agility__features") |
14
|
|
|
* @ORM\HasLifecycleCallbacks() |
15
|
|
|
*/ |
16
|
|
|
class Feature extends FeatureModel { |
17
|
|
|
/** |
18
|
|
|
* @ORM\Id |
19
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
20
|
|
|
* @ORM\Column(type="integer") |
21
|
|
|
*/ |
22
|
|
|
protected $id; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @ORM\Column(type="string", length=15) |
26
|
|
|
*/ |
27
|
|
|
protected $type; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @ORM\Column(type="string", length=255) |
31
|
|
|
*/ |
32
|
|
|
protected $name; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @ORM\Column(type="string", length=255) |
36
|
|
|
*/ |
37
|
|
|
protected $slug; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @ORM\Column(type="string", length=255, nullable=true) |
41
|
|
|
*/ |
42
|
|
|
protected $description; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @ORM\Column(type="integer", nullable=true) |
46
|
|
|
*/ |
47
|
|
|
protected $productOwnerValue; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @ORM\Column(type="integer", nullable=true) |
51
|
|
|
*/ |
52
|
|
|
protected $userValue; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @ORM\Column(type="datetime") |
56
|
|
|
*/ |
57
|
|
|
protected $createdAt; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @ORM\Column(type="datetime") |
61
|
|
|
*/ |
62
|
|
|
protected $updatedAt; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @ORM\Column(type="integer") |
66
|
|
|
*/ |
67
|
|
|
protected $status; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var Project |
71
|
|
|
* |
72
|
|
|
* @ORM\ManyToOne(targetEntity="Developtech\AgilityBundle\Entity\Project", inversedBy="features") |
73
|
|
|
*/ |
74
|
|
|
protected $project; |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @param integer $id |
78
|
|
|
* @return FeatureModel |
79
|
|
|
*/ |
80
|
2 |
|
public function setId($id) { |
81
|
2 |
|
$this->id = $id; |
82
|
|
|
|
83
|
2 |
|
return $this; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @return integer |
88
|
|
|
*/ |
89
|
3 |
|
public function getId() { |
90
|
3 |
|
return $this->id; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @ORM\PrePersist() |
95
|
|
|
*/ |
96
|
|
|
public function prePersist() { |
97
|
|
|
$this->createdAt = $this->updatedAt = new \DateTime(); |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @ORM\PreUpdate() |
102
|
|
|
*/ |
103
|
|
|
public function preUpdate() { |
104
|
|
|
$this->updatedAt = new \DateTime(); |
105
|
|
|
} |
106
|
|
|
} |
107
|
|
|
|