1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128 | namespace AppBundle\Entity;
use Doctrine\ORM\Mapping AS ORM;
/**
* @ORM\Entity
* @ORM\Table(name="anfrage_kommentar")
* @ORM\HasLifecycleCallbacks
*/
class AnfrageKommentar
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\Column(name="kommentar_text", type="text")
* @var string
*/
private $text;
/**
*
* The date when the entity was created
*
* @ORM\Column(name="date_created", type="datetime")
* @var \DateTime
*/
private $dateCreated;
/*
* references
*/
/**
*
* @ORM\ManyToOne(targetEntity="InvestmentAnfrage", inversedBy="_bewertungen" )
* @ORM\JoinColumn(name="investment_anfrage_id", referencedColumnName="id")
*/
private $investmentAnfrage;
/**
*
* @ORM\ManyToOne(targetEntity="User", inversedBy="_kommentare" )
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
*/
private $author;
/**
* @ORM\PrePersist()
*/
public function updateCreatedDatetime()
{
$this->dateCreated = new \DateTime();
}
/**
* @return the $id
*/
public function getId() {
return $this->id;
}
/**
* @return the $kommentar
*/
public function getText() {
return $this->text;
}
/**
* @return the $investmentAnfrage
*/
public function getInvestmentAnfrage() {
return $this->investmentAnfrage;
}
/**
* @return the $author
*/
public function getAuthor() {
return $this->author;
}
/**
* @param string $text
*/
public function setText($text) {
$this->text = $text;
}
/**
* @param field_type $investmentAnfrage
*/
public function setInvestmentAnfrage($investmentAnfrage) {
$this->investmentAnfrage = $investmentAnfrage;
}
/**
* @param field_type $author
*/
public function setAuthor($author) {
$this->author = $author;
}
/**
* @param \DateTime $dateCreated
*/
public function setDateCreated($dateCreated)
{
$this->dateCreated = $dateCreated;
}
/**
* @return \DateTime
*/
public function getDateCreated()
{
return $this->dateCreated;
}
}
|