1 | <?php |
||
14 | class Message |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\Id |
||
18 | * @ORM\Column(type="integer") |
||
19 | * @ORM\GeneratedValue(strategy="AUTO") |
||
20 | */ |
||
21 | protected $id; |
||
22 | |||
23 | /** |
||
24 | * @return mixed |
||
25 | */ |
||
26 | public function getId() |
||
30 | |||
31 | /** |
||
32 | * @param mixed $id |
||
33 | */ |
||
34 | public function setId($id) |
||
38 | |||
39 | /** |
||
40 | * @ORM\ManyToOne(targetEntity="Chrl\AppBundle\Entity\User", inversedBy="messages") |
||
41 | */ |
||
42 | public $user; |
||
43 | |||
44 | /** |
||
45 | * @ORM\Column(name="date", type="datetime") |
||
46 | */ |
||
47 | public $date; |
||
48 | |||
49 | /** |
||
50 | * @ORM\ManyToOne(targetEntity="Chrl\AppBundle\Entity\Game", inversedBy="messages") |
||
51 | */ |
||
52 | public $game; |
||
53 | /** |
||
54 | * @ORM\Column(name="text", type="text") |
||
55 | */ |
||
56 | public $text; |
||
57 | } |
||
58 |