| author | ymh <ymh.work@gmail.com> |
| Sun, 06 Nov 2011 23:44:37 +0100 | |
| changeset 27 | 1df556b2c0f9 |
| parent 24 | 57ff6d39f88c |
| child 61 | 9f427e7c88f9 |
| permissions | -rwxr-xr-x |
| 2 | 1 |
<?php |
2 |
||
3 |
namespace Company\BaseBundle\Entity; |
|
4 |
||
5 |
use Doctrine\ORM\Mapping as ORM; |
|
| 9 | 6 |
use IRI\Bundle\WikiTagBundle\Model\DocumentInterface; |
| 2 | 7 |
|
8 |
/** |
|
9 |
* Company\BaseBundle\Entity\Document |
|
10 |
* |
|
11 |
* @ORM\Table() |
|
12 |
* @ORM\Entity(repositoryClass="Company\BaseBundle\Entity\DocumentRepository") |
|
13 |
*/ |
|
|
18
c85b9d1ddf19
first implementation of dynamic fields
ymh <ymh.work@gmail.com>
parents:
9
diff
changeset
|
14 |
class Document |
| 2 | 15 |
{ |
16 |
/** |
|
17 |
* @var integer $id |
|
18 |
* |
|
19 |
* @ORM\Column(name="id", type="integer") |
|
20 |
* @ORM\Id |
|
21 |
* @ORM\GeneratedValue(strategy="AUTO") |
|
22 |
*/ |
|
23 |
private $id; |
|
24 |
||
25 |
/** |
|
26 |
* @var string $title |
|
27 |
* |
|
28 |
* @ORM\Column(name="title", type="string", length=255) |
|
29 |
*/ |
|
30 |
private $title; |
|
|
24
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
31 |
|
|
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
32 |
|
| 2 | 33 |
/** |
34 |
* @var text $description |
|
35 |
* |
|
36 |
* @ORM\Column(name="description", type="text") |
|
37 |
*/ |
|
38 |
private $description; |
|
39 |
||
40 |
||
41 |
/** |
|
42 |
* Get id |
|
43 |
* |
|
| 9 | 44 |
* @return integer |
| 2 | 45 |
*/ |
46 |
public function getId() |
|
47 |
{ |
|
48 |
return $this->id; |
|
49 |
} |
|
50 |
||
51 |
/** |
|
52 |
* Set title |
|
53 |
* |
|
54 |
* @param string $title |
|
55 |
*/ |
|
56 |
public function setTitle($title) |
|
57 |
{ |
|
58 |
$this->title = $title; |
|
59 |
} |
|
60 |
||
61 |
/** |
|
62 |
* Get title |
|
63 |
* |
|
| 9 | 64 |
* @return string |
| 2 | 65 |
*/ |
66 |
public function getTitle() |
|
67 |
{ |
|
68 |
return $this->title; |
|
69 |
} |
|
70 |
||
|
24
57ff6d39f88c
first full dynamic version of the bundle
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
71 |
|
| 2 | 72 |
/** |
73 |
* Set description |
|
74 |
* |
|
75 |
* @param text $description |
|
76 |
*/ |
|
77 |
public function setDescription($description) |
|
78 |
{ |
|
79 |
$this->description = $description; |
|
80 |
} |
|
81 |
||
82 |
/** |
|
83 |
* Get description |
|
84 |
* |
|
| 9 | 85 |
* @return text |
| 2 | 86 |
*/ |
87 |
public function getDescription() |
|
88 |
{ |
|
89 |
return $this->description; |
|
90 |
} |
|
91 |
} |